Re: [Catalyst] Catalyst Redirect to https

2010-03-26 Thread Octavian Rasnita
From: Bill Moseley 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

Re: [Catalyst] Catalyst Redirect to https

2010-03-26 Thread Jose Luis Martinez
El 26/03/2010 8:46, Octavian Rasnita escribió: And in a test action I have done: my $body; $body .= HTTPS environment variable: $ENV{HTTPS}br /\n; $body .= HTTPS header: . $c-req-header('HTTPS') . br /\n; $body .= secure: . $c-req-secure . br /\n;; $c-req-secure(1);

Re: [Catalyst] Catalyst Redirect to https

2010-03-26 Thread Bill Moseley
On Fri, Mar 26, 2010 at 12:46 AM, Octavian Rasnita orasn...@gmail.comwrote: *From:* Bill Moseley mose...@hank.org SetEnv HTTPS On Does that header get to Catalyst? Obviously, check that first. I didn't know that HTTPS should be an HTTP header and not an environment variable so I

[Catalyst] Catalyst Redirect to https

2010-03-25 Thread Octavian Rasnita
Hi, In a catalyst action accessed using https I do: if ($c-authenticate({username = $username, password = $password, active = 1})) { $c-res-redirect($c-uri_for_action(/index)); } It redirects to / URI of the site, but using http, not https as in the request for the current page. Isn't

Re: [Catalyst] Catalyst Redirect to https

2010-03-25 Thread Christiaan Kras
You can use Catalyst::Plugin::RequireSSL to force https. Although I think https should be used by your method if that's what the user access the app with. Christiaan Octavian Rasnita schreef: Hi, In a catalyst action accessed using https I do: if ($c-authenticate({username =

Re: [Catalyst] Catalyst Redirect to https

2010-03-25 Thread Octavian Rasnita
Hi, Sorry but I haven't provided the correct information. The problem is that I use a load balancer (Apache mod_proxy_balancer) and it gets the https request, however it passes the request to the backend Apache - mod_perl based servers using http. How do you do $c-res-redirect in cases like

Re: [Catalyst] Catalyst Redirect to https

2010-03-25 Thread Bill Moseley
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