tanakahisateru / pinoco

Web site development framework using PHP and (mainly) PHPTAL
http://tanakahisateru.github.io/pinoco/
Other
43 stars 10 forks source link

HTTP_HOST instead of SERVER_NAME #56

Closed tanakahisateru closed 12 years ago

tanakahisateru commented 12 years ago

Sometimes Apache's ServerName is not same as content of browser address bar if UseCanonicalName is set. To retain host name looked from user when redirect HTTP_HOST should be used to choose target URL.

tanakahisateru commented 12 years ago

Also fixed host name option needed for a case when behind of reverse proxy.

tanakahisateru commented 12 years ago

Also fixed host name option needed for a case when behind of reverse proxy.

You can set $_SERVER's property directly.