[Catalyst] changing the port

Octavian Rasnita orasnita at gmail.com
Sun Jan 14 17:14:08 GMT 2007


From: "Bill Moseley" <moseley at hank.org>

>> 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.

I have also tried commenting out the ProxyPassReverse line in httpd.conf, 
and used in the Catalyst controller:

$c->res->redirect($c->uri_for("/"));

But it still redirects to the port 80 (without specifying any port).

Am I doing something wrong?

Thanks.

Octavian







More information about the Catalyst mailing list