Skip to content

Instantly share code, notes, and snippets.

@silpol
Forked from woodb/default.conf
Last active August 28, 2015 09:30
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save silpol/8d1b2ffc6a001e1d6feb to your computer and use it in GitHub Desktop.
Save silpol/8d1b2ffc6a001e1d6feb 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