server { server_name {{ nginx_hostname }}; access_log {{ web_root_path }}/logs/nginx/{{ app_name }}-access.log; error_log {{ web_root_path }}/logs/nginx/{{ app_name }}-error.log info; location /static/ { alias {{ nginx_app_static }}; } location / { try_files $uri @yourapplication; } location @yourapplication { include uwsgi_params; uwsgi_pass 127.0.0.1:{{ uwsgi_port }}; } }