try_files

Maxim Dounin mdounin at mdounin.ru
Fri May 20 14:23:09 MSD 2011


Hello!

On Thu, May 19, 2011 at 06:10:04PM -0400, David J. wrote:

> 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 domain.com  returns a 403 (when I dont have an
> index.html file in the root directory);
> 
> but if I do domain.com/index.wsgi
> 
> 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
> }

Please show full config.

Maxim Dounin



More information about the nginx mailing list