Fail with multiple reverse proxies
-
If WordPress is behind several reverse proxies, the environment variable
HTTP_X_FORWARDED_HOST
may contain a list of comma-separated values.
So that, in
wp_cassify_utils.php
only the first proxy should be taken into account:…
// If cassified application is hosted behind reverse proxy.
if ( isset( $_SERVER[ ‘HTTP_X_FORWARDED_HOST’ ] ) ) {
$current_url .= explode(“,”, $_SERVER[ ‘HTTP_X_FORWARDED_HOST’] )[0];
…
- The topic ‘Fail with multiple reverse proxies’ is closed to new replies.