Title: error beyond a reverse proxy
Last modified: August 31, 2016

---

# error beyond a reverse proxy

 *  Resolved [franck86](https://wordpress.org/support/users/franck86/)
 * (@franck86)
 * [10 years, 2 months ago](https://wordpress.org/support/topic/error-beyond-a-reverse-proxy/)
 * Hello,
 * the procedure **wp_cassify_get_current_url** in **wp_cassify_utils.php**, took
   the **$_SERVER[‘SERVER_NAME’]** to build the service url.
 * When the server is beyond a proxy this is not working, in my case i had to modified
   the line 69 like this :
    //$current_url .= $_SERVER[ ‘SERVER_NAME’ ]; $current_url.
   = $_SERVER[ ‘HTTP_X_FORWARDED_HOST’ ];
 * Thanks
 * Franck
 * [https://wordpress.org/plugins/wp-cassify/](https://wordpress.org/plugins/wp-cassify/)

Viewing 1 replies (of 1 total)

 *  Plugin Author [Alain-Aymerick FRANCOIS](https://wordpress.org/support/users/aaf017/)
 * (@aaf017)
 * [10 years, 2 months ago](https://wordpress.org/support/topic/error-beyond-a-reverse-proxy/#post-7252718)
 * Hi,
 * Thanks for your reply. You are right ! I’ve made a test behind a reverse proxy.
   It seems that if application is hosted behind a reverse proxy, server variable
   $_SERVER[ ‘HTTP_X_FORWARDED_HOST’ ] is set and if application is hosted without
   proxy $_SERVER[ ‘HTTP_X_FORWARDED_HOST’ ] is not set.
 * So I’ve made a fix in new plugin version like that :
 * // If cassified application is hosted behind reverse proxy.
    if ( isset( $_SERVER[‘
   HTTP_X_FORWARDED_HOST’ ] ) ) { $current_url .= $_SERVER[ ‘HTTP_X_FORWARDED_HOST’];}
   else { $current_url .= $_SERVER[ ‘SERVER_NAME’ ]; }
 * I’ve made thanks to you on the plugin front page.
 * Best regards.

Viewing 1 replies (of 1 total)

The topic ‘error beyond a reverse proxy’ is closed to new replies.

 * ![](https://ps.w.org/wp-cassify/assets/icon-256x256.png?rev=3112582)
 * [WP Cassify](https://wordpress.org/plugins/wp-cassify/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/wp-cassify/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/wp-cassify/)
 * [Active Topics](https://wordpress.org/support/plugin/wp-cassify/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/wp-cassify/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/wp-cassify/reviews/)

 * 1 reply
 * 2 participants
 * Last reply from: [Alain-Aymerick FRANCOIS](https://wordpress.org/support/users/aaf017/)
 * Last activity: [10 years, 2 months ago](https://wordpress.org/support/topic/error-beyond-a-reverse-proxy/#post-7252718)
 * Status: resolved