[Catalyst] Setting $c->req->{base}
Andy Grundman
andy at hybridized.org
Tue Sep 20 15:57:03 CEST 2005
Andy Grundman wrote:
> HTTPS though, good point. That will need to be handled as well.
After testing on one of my double-server setups, there doesn't seem to
be any way to automatically detect if the frontend server is running in
HTTPS mode.
The way I handle this currently is to have 2 different backend ports,
one for HTTP and one for HTTPS. On the second port, I add:
PerlSetEnv HTTPS On
and then check apache->dir_config->{HTTPS} in my code.
Anybody have a better way to do this?
-Andy
More information about the Catalyst
mailing list