[Catalyst] changing the port
Bill Moseley
moseley at hank.org
Sun Jan 14 17:54:08 GMT 2007
On Sun, Jan 14, 2007 at 06:55:28PM +0200, Octavian Rasnita wrote:
> I have tried it, and yes, the host and port are well taken this way.
> But how should I redirect automaticly to the base directory (/) including
> the port?
What does
warn $c->uri_for('/');
show in the logs?
I just started up my front/back server on my host "bumby" with the
front end listening on 8080 (the back end listens to 18080).
I added this to a template:
uri = c.uri_for('/');
"uri = [$uri]\n" | stderr;
And in my logs I have:
uri = [http://bumby:8080/]
--
Bill Moseley
moseley at hank.org
More information about the Catalyst
mailing list