KeyError: 'SCRIPT_NAME' (nginx + uwsgi)

Issue #2 wontfix
Andriy Kornatskyy repo owner created an issue

nginx + uwsgi

File "/usr/lib/python2.7/site-packages/wheezy.http-0.1.249-py2.7.egg/wheezy/http/", line 135, in root_path return self.environ['SCRIPT_NAME'] + '/' KeyError: 'SCRIPT_NAME'

There is no such issue in apache + mod_wsgi.

Comments (2)

  1. Andriy Kornatskyy reporter

    nginx does pass parameter SCRIPT_NAME per PEP3333. Add the following workaround to nginx configuration to get it fixed:

    uwsgi_param SCRIPT_NAME '';

  2. Log in to comment