[Chameleon-dev] [Bug 1518] Chameleon does not work when forwarding from a host

bugzilla-daemon at bugzilla.maptools.org bugzilla-daemon at bugzilla.maptools.org
Wed Jul 5 13:03:24 EDT 2006


------- Additional Comments From dmorissette at mapgears.com  2006-07-05 13:03 -------
I didn't look at this specific block of code in the Chameleon source, but
typically we have to use this variable as a replacement for
$_SERVER['HTTP_HOST'] when a proxy is involved. I believe it must be that
Chameleon needs the server's hostname to build URLs to include in templates that
refer to other chameleon scripts or documents, for instance drawmap.php.

When there is a proxy in-between the chameleon instance and the client, the
$_SERVER['HTTP_HOST'] variable is not set (or is set to the local address, I
don't remember), and we have to use $_SERVER['HTTP_X_FORWARDED_HOST'] instead.

------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.

Please do NOT reply to this email, use the link above instead to 
login to bugzilla and submit your comment. Any email reply to this
address will be lost.

More information about the Chameleon-dev mailing list