Skip to content

Instantly share code, notes, and snippets.

@Sawboo
Created August 28, 2013 21:34
Show Gist options
  • Save Sawboo/6371625 to your computer and use it in GitHub Desktop.
Save Sawboo/6371625 to your computer and use it in GitHub Desktop.
nginx virtual config
server {
listen 80;
server_name www.groundupnet.com groundupnet.com;
access_log /srv/www/groundupnet.com/logs/access.log;
error_log /srv/www/groundupnet.com/logs/error.log;
charset utf-8;
# Django admin media.
location /media/ {
alias srv/www/groundupnet.com/lib/python2.7/site-packages/django/contrib/admin/media/;
}
# Your project's static media.
location /static {
alias /srv/www/groundupnet.com/static;
}
# Finally, send all non-media requests to the Django server.
location / {
uwsgi_pass unix:/tmp/uwsgi.sock;
include uwsgi_params;
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment