Skip to content

Instantly share code, notes, and snippets.

@orb
Last active August 29, 2015 14:04
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save orb/93e11586f71b615ccb09 to your computer and use it in GitHub Desktop.
Save orb/93e11586f71b615ccb09 to your computer and use it in GitHub Desktop.
generic nginx proxy
upstream myapp {
server 127.0.0.1:8000;
}
server {
listen 80;
server_name localhost;
location / {
proxy_pass http://myapp;
proxy_read_timeout 180;
}
}
@orb
Copy link
Author

orb commented Jul 28, 2014

Put in /etc/nginx/sites-available.

ln -s /etc/nginx/sites-available/myapp /etc/nginx/sites-enabled/myapp

@orb
Copy link
Author

orb commented Jul 28, 2014

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