server { server_name localhost; location /static/ { alias /srv/www/rookeries_webapp/rookeries/static/; } location / { try_files $uri @yourapplication; } location @yourapplication { include uwsgi_params; uwsgi_pass 127.0.0.1:8001; } }