python3 does not manage script_name

Bug #1438972 reported by qmax on 2015-04-01
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
uwsgi (Ubuntu)
Undecided
Unassigned

Bug Description

Ubuntu 14.04.2 LTS
uwsgi-plugin-python3 1.9.17.1-5build5

Plugin ignores script_name given from nginx and does not modify path_info.

nginx.conf:

    location /test {
        uwsgi_pass 127.0.0.1:9000;
        include uwsgi_params;
        uwsgi_param SCRIPT_NAME /test;
        uwsgi_modifier1 30; # this should turn on this behaviour, but does not work
   }

uwsgi.ini:

    [uwsgi]
    plugins=python3
    chdir=path
    virtualenv=%(chdir)/ENV3
    wsgi=filename
    manage_script_name=1 # this also should turn on this behaviour, but also does not work
    socket=:9000

Result of GET /test/foo

    REQUEST_URI: '/test/foo'
    SCRIPT_NAME: '/test'
    PATH_INFO: '/test/foo' # should be /foo

To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Other bug subscribers