Skip to content

Instantly share code, notes, and snippets.

@ashwoods
Created June 14, 2012 20:55
Show Gist options
  • Save ashwoods/2932905 to your computer and use it in GitHub Desktop.
Save ashwoods/2932905 to your computer and use it in GitHub Desktop.
nginx configuration
server {
listen *;
server_name bribespot.org;
access_log /var/log/nginx/bribespot.access.log;
location / {
proxy_pass http://bribespot_app;
proxy_read_timeout 120;
}
location /media/ {
alias /opt/bribespot/bribespotweb/bribespotweb/media/;
}
location /static/ {
alias /opt/bribespot/bribespotweb/bribespotweb/static/;
}
}
upstream bribespot_app {
server localhost:9000;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment