Skip to content

Instantly share code, notes, and snippets.

@woodb
Created July 8, 2012 16:48
Show Gist options
  • Save woodb/3071740 to your computer and use it in GitHub Desktop.
Save woodb/3071740 to your computer and use it in GitHub Desktop.
nginx configuration for uWSGI
server {
listen 80;
server_name blog;
server_name blog.example.com;
root /var/www/blog;
location /static/ {
alias /var/www/blog/static/;
expires 30d;
access_log off;
}
location / {
include uwsgi_params;
uwsgi_pass unix:/var/www/run/blog.sock;
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment