[Catalyst] nginx configuration issues

Janne Snabb snabb at epipe.com
Sun Nov 6 03:59:29 GMT 2011


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
snabb at epipe.com - http://epipe.com/



More information about the Catalyst mailing list