[Plugin: Proxy Real IP] Similar problem also with HTTP_HOST, redirection loop
-
Seems that a similar server misconfiguration also fails to set
HTTP_HOST
in the correct way, so if somebody on such a server moves a blog fomhttps://example.com/
tohttps://blog.example.com/
it will end up hanging in an endless redirection loop asHTTP_HOST
is still set asexample.com
The plugin solves the IP issue, but not the hostname, maybe you could add this correction as an option (default disabled, enable via filter) in a future update or as own plugin. At the moment I use this added to your
proxy-real-ip.php
and it corrects the above issue:if ( ! empty( $_SERVER['HTTP_X_FORWARDED_HOST'] ) ) { $_SERVER['HTTP_HOST'] = $_SERVER['HTTP_X_FORWARDED_HOST']; }
Note: The
Plugin URI: wordpressforedu.com
seems to lead to nowhere, it should maybe lead here or to a page which also leads here.
- The topic ‘[Plugin: Proxy Real IP] Similar problem also with HTTP_HOST, redirection loop’ is closed to new replies.