Welcome! Log In Create A New Profile

Advanced

Problem with double slashes in urls with uwsgi and sockets

September 12, 2013 04:53PM
I have python app running under uwsgi with nginx. I'm using unix sockets to connect nginx to uwsgi. My python app is receiving single slashes in urls that originally had a double slash. For example, if the url is http://localhost:3000/a//b , my program gets passed a path_info with a/b instead of a//b.

My location definition looks like this:

location / {
include uwsgi_params;
uwsgi_pass unix:///tmp/siteserver.socket;
}

Your help greatly appreciated.
SubjectAuthorPosted

Problem with double slashes in urls with uwsgi and sockets

mpnallySeptember 12, 2013 04:53PM

Re: Problem with double slashes in urls with uwsgi and sockets

Francis DalySeptember 12, 2013 07:24PM

Re: Problem with double slashes in urls with uwsgi and sockets

mpnallySeptember 13, 2013 10:26AM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 87
Record Number of Users: 7 on March 06, 2014
Record Number of Guests: 229 on August 01, 2014
Powered by nginx    Powered by FreeBSD    PHP Powered    Powered by Percona     ipv6 ready