Created
December 27, 2012 07:27
-
-
Save seekshiva/4386309 to your computer and use it in GitHub Desktop.
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
upstream thin { | |
server unix:/tmp/thin.0.sock; | |
server unix:/tmp/thin.1.sock; | |
server unix:/tmp/thin.2.sock; | |
} | |
server { | |
listen 80; | |
location /status.html { | |
proxy_pass http://thin; | |
} | |
if ($http_x_forwarded_proto = 'http') { | |
rewrite ^/(.*)$ https://$server_name$request_uri? permanent; | |
} | |
location / { | |
proxy_pass http://thin; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
https://gist.github.com/4386980