Skip to content

Instantly share code, notes, and snippets.

@orb orb/myapp
Last active Aug 29, 2015

Embed
What would you like to do?
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

This comment has been minimized.

Copy link
Owner Author

commented Jul 28, 2014

Put in /etc/nginx/sites-available.

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

This comment has been minimized.

Copy link
Owner Author

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
You can’t perform that action at this time.