4 ms·
I don't understand why you go through the trouble of letting Mongrel/Rails handle the SSL. I've always opted to just let Apache handle it and I don't doubt ngi
by Confusion 16y ago
I don't understand why you go through the trouble of letting Mongrel/Rails handle the SSL. I've always opted to just let Apache handle it and I don't doubt nginx could just as well. Our Passenger simply doesn't know that everything between client and server happens to be encrypted.
- zumda 16y agonginx 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; }