Created
August 28, 2013 21:34
-
-
Save Sawboo/6371625 to your computer and use it in GitHub Desktop.
nginx virtual config
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 www.groundupnet.com groundupnet.com; | |
access_log /srv/www/groundupnet.com/logs/access.log; | |
error_log /srv/www/groundupnet.com/logs/error.log; | |
charset utf-8; | |
# Django admin media. | |
location /media/ { | |
alias srv/www/groundupnet.com/lib/python2.7/site-packages/django/contrib/admin/media/; | |
} | |
# Your project's static media. | |
location /static { | |
alias /srv/www/groundupnet.com/static; | |
} | |
# Finally, send all non-media requests to the Django server. | |
location / { | |
uwsgi_pass unix:/tmp/uwsgi.sock; | |
include uwsgi_params; | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment