On Sun, Nov 06, 2011 at 03:59:29AM +0000, Janne Snabb wrote:
> On Sat, 5 Nov 2011, Jesse Sheidlower wrote:
> 
> > How do I configure nginx to handle ssl requests for Cat apps through
> > Cat? And is there some neat way of handling the configuration, so that I
> > don't have to put it in two places (the regular server on 80 and the
> > https server on 443)? 
> 
> If I understood correctly, your Catalyst app takes care of redirecting
> the users to https when required?

Yes; Catalyst rewrites the URLs using C::P::RequireSSL when required
(i.e. when I tell it to).

> In that case you could make just one server block which handles
> both http and https and forwards them to Catalyst?
> 
> For example:
> 
> server {
>       listen          127.0.0.1:80;
>       listen          127.0.0.1:443 ssl;
>       server_name     foobar.example.com;
> 
>       ...other stuff...
> }

I haven't been able to get any version of this working (also, would it
interfere with the use of SSL elsewhere on the site?), I'm afraid.

_______________________________________________
List: [email protected]
Listinfo: http://lists.scsys.co.uk/cgi-bin/mailman/listinfo/catalyst
Searchable archive: http://www.mail-archive.com/[email protected]/
Dev site: http://dev.catalyst.perl.org/

Reply via email to