2010/3/25 Octavian Rasnita <orasn...@gmail.com> > > The back end servers don't know if the current request is an http or an > https one and on each redirect, they do the redirection using the http > scheme. > (I have also set the configuration option using_frontend_proxy to true.) > > > Also, because the back end servers receive only http requests, > $c->req->secure is always equal to 0. > I have read that I can set the HTTPS environment variable to "On" and I put > the following line in the configuration file of the load balancer Apache > server in the virtualhost that handles SSL requests: > > SetEnv HTTPS On >
Does that header get to Catalyst? Obviously, check that first. I have this in a "after 'prepare_headers'": $res->secure( 1 ) if lc( $req->header( 'Https' ) || '' ) eq 'on'; The load balancer sends all traffic to the same port. The load balancer sets that header for SSL traffic. I used to send to two different ports and then detect SSL based on the port number. Same result either way. -- Bill Moseley mose...@hank.org
_______________________________________________ List: Catalyst@lists.scsys.co.uk Listinfo: http://lists.scsys.co.uk/cgi-bin/mailman/listinfo/catalyst Searchable archive: http://www.mail-archive.com/catalyst@lists.scsys.co.uk/ Dev site: http://dev.catalyst.perl.org/