David J. david at
Fri May 20 02:10:04 MSD 2011

I have a uwsgi_app

I was wondering why

location / {
root /myapp;
index index.html index.wsgi;
try_files $uri $uri/ @wsgi;

When I visit the  returns a 403 (when I dont have an 
index.html file in the root directory);

but if I do

The WSGI app is called. This all works.

I am guessing I am doing something wrong.

In my config I have

location @wsgi {
     include uwsgi_params;
     uwsgi_pass unix:/tmp/uwsgi.sock

More information about the nginx mailing list