3 ms·
nginx has a SSL module[1], so you could do that. Just redirect all traffic coming to port 80 to https[2]. But he might have had a good reason to handle it in Mo
by zumda 16y ago
nginx has a SSL module[1], so you could do that. Just redirect all traffic coming to port 80 to https[2]. But he might have had a good reason to handle it in Mongrel.
[1] http://wiki.nginx.org/NginxHttpSslModule http://wiki.nginx.org/NginxHttpSslModule
[2] Add this to your config:
server {
listen 80;
server_name example.com;
rewrite ^/(.*) https://example.com/$1 https://example.com/$1 permanent;
}