Welcome! Log In Create A New Profile

Advanced

try_files

David J.
May 19, 2011 06:10PM
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
}

_______________________________________________
nginx mailing list
nginx@nginx.org
http://nginx.org/mailman/listinfo/nginx
Subject Author Posted

try_files

David J. May 19, 2011 06:10PM

Re: try_files

Maxim Dounin May 20, 2011 06:24AM

Re: try_files

David J. May 20, 2011 06:58AM

Re: try_files

Maxim Dounin May 20, 2011 08:14AM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 148
Record Number of Users: 8 on April 13, 2023
Record Number of Guests: 421 on December 02, 2018
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready