Apache reverse proxy and HTTP_HOST
Hello dear wordpress users and developpers.
I’m having great problem to install wordpress on a web server.
there is a gateway with a public IP (dynamic).
There is a web server with a private IP behind the firewall.
The request are made through the apache reverse proxy fonctionnality on the gateway
(RewriteRule …… http://172.16.0.243/)
A vast majority of the links in wordpress are made using the $_SERVER[‘HTTP_HOST’] usage. Because of the apache reverse proxy, the request are made using 172.16.0.243.
But then, the links are served to the end client, wich know nothing of 172.16.0.243
Is ther a way to solve this tuning either the apache2 config or the php config to force the HTTP_HOST variable?
I’ve already set
in apache2 without success. I’ve tried to use apache without virtual hosts also. No more success.
TIA for any help.
- The topic ‘Apache reverse proxy and HTTP_HOST’ is closed to new replies.