Created
January 7, 2013 18:30
-
-
Save davesque/4477275 to your computer and use it in GitHub Desktop.
Nginx host file for django and 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 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