> 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?


> Remember that in the cherokee admin you have to add a new directory called
> /test (that will point to the uWSGI handler)

of course, that's what I did.


ps,
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

config is
         location /test/ {
             uwsgi_pass         127.0.0.1:3333;
             include            uwsgi_params;
             uwsgi_modifier1    30;
             uwsgi_param SCRIPT_NAME  /test;
         }

(is PATH_INFO incorrect here?)


Cherokee 1.0.18
[uWSGI DEBUG] uwsgi payload size: 1006 (0x3EE) modifier1: 0 modifier2: 0
[uWSGI DEBUG] SCRIPT_NAME=/test
[uWSGI DEBUG] HTTP_HOST=localhost
[uWSGI DEBUG] PATH_INFO=/admin/
[uWSGI DEBUG] SCRIPT_NAME=/test

config is: directory /test, env SCRIPT_NAME /test, etc..
PATH_INFO seems correct here, but I couldn't change modifier1, I did try 
modifier1 30 in the env variables.



-- 
дамјан
_______________________________________________
uWSGI mailing list
[email protected]
http://lists.unbit.it/cgi-bin/mailman/listinfo/uwsgi

Reply via email to