Created
July 8, 2012 16:48
-
-
Save woodb/3071740 to your computer and use it in GitHub Desktop.
nginx configuration for uWSGI
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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