Created
May 23, 2012 19:11
-
-
Save mraaroncruz/2777162 to your computer and use it in GitHub Desktop.
No SSL redirects with Spree
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
server { | |
server_name example.com; | |
listen 80; | |
root /var/www/my_app/public; | |
passenger_enabled on; | |
error_page 500 502 503 504 /500.html; | |
client_max_body_size 4G; | |
keepalive_timeout 10; | |
} | |
server { | |
server_name example.com; | |
listen 443; | |
root /var/www/my_app/public; | |
passenger_enabled on; | |
ssl_certificate /etc/nginx/conf.d/.ssl/example.com.crt; | |
ssl_certificate_key /etc/nginx/conf.d/.ssl/example.com.key; | |
ssl on; | |
error_page 500 502 503 504 /500.html; | |
client_max_body_size 4G; | |
keepalive_timeout 10; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment