Simple config site at develop mode
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;
}
}