how to set php SERVER_PORT var to 80, behind varnish?
Posted
by
Daniel
on Server Fault
See other posts from Server Fault
or by Daniel
Published on 2011-10-03T23:58:41Z
Indexed on
2012/10/22
5:05 UTC
Read the original article
Hit count: 201
how to force php to read SERVER_PORT as 80, when apache listens on 8080 and varnish listens on 80 ??
if my apache vhost is set to 8080, SERVER_PORT will always be 8080, this is troubling me a little since in many parts of the application some links are calculated with SERVER_NAME and SERVER_PORT together, .. so what I need is that php "believes" that SERVER_PORT is 80, so all links will pass trough varnish
regards
Daniel
© Server Fault or respective owner