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?
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...
}
--
Janne Snabb / EPIPE Communications
[email protected] - http://epipe.com/
_______________________________________________
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/