Last active
August 29, 2015 14:04
-
-
Save orb/93e11586f71b615ccb09 to your computer and use it in GitHub Desktop.
generic nginx proxy
This file contains hidden or 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 myapp { | |
server 127.0.0.1:8000; | |
} | |
server { | |
listen 80; | |
server_name localhost; | |
location / { | |
proxy_pass http://myapp; | |
proxy_read_timeout 180; | |
} | |
} |
rm /etc/nginx/sites-available/default
nginx -s reload
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Put in
/etc/nginx/sites-available
.