Skip to content

Instantly share code, notes, and snippets.

@davesque
Created January 7, 2013 18:30
Show Gist options
  • Save davesque/4477275 to your computer and use it in GitHub Desktop.
Save davesque/4477275 to your computer and use it in GitHub Desktop.
Nginx host file for django and uwsgi
server {
listen 80;
server_name example.com;
charset utf-8;
location /static/ {
alias /var/www/example.com/static/;
}
location /media/ {
alias /var/www/example.com/media/;
}
# uWSGI pass-through
location / {
uwsgi_pass unix:///tmp/example.com.sock;
include uwsgi_params;
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment