|
Main sidebar
|
PITS /
01225Summary: HTTP_HOST may not always be the proper public URL (HTTP_X_FORWARDED_HOST)
Created: 2010-09-24 11:25
Status: Open
Category: Feature
From: Profiles
Assigned:
Priority: 2
Version: 2.2.18
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 if (isset($_SERVER['HTTP_X_FORWARDED_HOST'])) { } else { } |