8

Root directive in nginx for django/uwsgi

view full story
linux-howto

http://stackoverflow.com – Let's say I have a django project in /home/django/project0/ and my setup is: server { ... root /usr/share/nginx/www/project0; ... location / { uwsgi_pass unix:///tmp/uwsgi/uwsgi_project0.sock; include uwsgi_params; ... } location /static/ { root /usr/share/nginx/www/project0/static; ... } # similar settings for robots.txt and favicon.ico } Since the static files will be served by different folders and django will be served through wsgi isn't the root directive useless? What happens if I do not set a value to root? (HowTos)