On 18 December 2015 at 16:34, Damjan Georgievski <[email protected]> wrote:
> Below is my config (.ini) file. > > Requesting the /_auth url should hit my application, all other urls should > redirect to /_auth > > The problem is, even a request to /_auth is redirected to /_auth and > `redirect will happen` shows up in the log. > This only happens when I use the `mount` option, not for ex. if I use > wsgi-file instead. > > > [uwsgi] > master = true > http-socket = :8000 > > plugin = python > mount = /_auth=app.py > callable = app > manage-script-name = true > > route = ^/_auth log:redirect shouldn't happen > route = ^/_auth last: > > route-run = log:redirect will happen > route-run = redirect:/_auth > Found the issue, route works on the path_info by default, and `manage-script-name = true` changed that. had to use route-uri instead. route-uri = ^/_auth last: -- damjan
_______________________________________________ uWSGI mailing list [email protected] http://lists.unbit.it/cgi-bin/mailman/listinfo/uwsgi
