>> In 0.9.7 (mercurial tip) you have tons of possibilities. but if you want >> to maintain the current style you can do something like this: >> >> export UWSGI_MOUNT="/test=django.core.handlers.wsgi:WSGIHandler()" >> export DJANGO_SETTINGS_MODULE="hacklab.settings" >> exec uwsgi --socket :3333 >> >> >> (i hope that UWSGI_MOUNT/--mount is pretty self-explanatory) > > it is. > > so it must be that uwsgi is started with the specific url prefix? > I was hoping to have a generic runner for the app, and then I would only > configure the url prefix in the web server - so is that impossible?
Use your original config and add the --ignore-script-name (or UWSGI_IGNORE_SCRIPT_NAME var). In this way whatever the value of SCRIPT_NAME is, the default app will be served. > I've also tested with nginx and that modifier setting, it didn't work > either. These are the results with uwsgi 0.9.6.6 in debug mode: > nginx 0.8.54 > [uWSGI DEBUG] uwsgi payload size: 728 (0x2D8) modifier1: 30 modifier2: 0 > [uWSGI DEBUG] PATH_INFO=/test/admin/ > [uWSGI DEBUG] SERVER_NAME= > [uWSGI DEBUG] SCRIPT_NAME=/test > [uWSGI DEBUG] HTTP_HOST=localhost e?) > This is correct (the debug info are printed before the PATH_INFO rewriting) and should work out of the box. What error did you see in the browser ? -- Roberto De Ioris http://unbit.it _______________________________________________ uWSGI mailing list [email protected] http://lists.unbit.it/cgi-bin/mailman/listinfo/uwsgi
