Last active
December 11, 2015 10:18
-
-
Save DrMartiner/4585573 to your computer and use it in GitHub Desktop.
Simple config site at develop mode
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 project.ru www.project.ru; | |
access_log /var/log/nginx/project-access.log; | |
error_log /var/log/nginx/project-error.log; | |
root /home/www/project/; | |
location /static/ { | |
autoindex on; | |
} | |
location /media/ { | |
autoindex on; | |
} | |
location / | |
{ | |
uwsgi_pass unix:///var/run/uwsgi/app/project/socket; | |
include uwsgi_params; | |
uwsgi_buffers 8 128k; | |
client_max_body_size 10M; | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment