[Catalyst] changing the port
Bill Moseley
moseley at hank.org
Sun Jan 14 16:12:26 GMT 2007
On Sun, Jan 14, 2007 at 10:03:43AM -0500, Perrin Harkins wrote:
> Octavian Rasnita wrote:
> >Is there a recommended method to get the correct port of the original
> >request that works no matter if the application runs using a proxy
> >server or not?
>
> You need it to set the port to whatever your backend server listens on
> (83 you said?) and then you rewrite it in your proxy with a
> ProxyPassReverse directive.
I don't use ProxyPassReverse in my front-end Apache config. Catalyst
builds URLs for the front end server with $c->uri_for that includes
the port.
It should pull the port from X-Forwarded-Host, IIRC.
--
Bill Moseley
moseley at hank.org
More information about the Catalyst
mailing list