Summary: HTTP_HOST may not always be the proper public URL (HTTP_X_FORWARDED_HOST)
Created: 2010-09-24 11:25
OS: AS/400 / Apache / 5.2.13
Description: Sometimes the public facing web server forwards a request to another CGI process or another internal Web server. In this case, pmwiki will use the environment variable $_SERVER['HTTP_HOST'], which will reflect the internal process/server. Checking for the value HTTP_X_FORWARDED_HOST is a quick fix which will expand the install base for default setups without any extra configuration.
I tried setting