-
-
Save silpol/8d1b2ffc6a001e1d6feb to your computer and use it in GitHub Desktop.
nginx configuration for uWSGI
This file contains hidden or 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