[uWSGI] Problem with cherokee (app: -1)

Damjan Georgievski gdamjan at gmail.com
Mon Jul 12 22:06:21 CEST 2010


>> I start uwsgi with:
>> uwsgi --socket 127.0.0.1:37117 --wsgi-file x.wsgi
>>
>> and I have the uWsgi handler in Cherokee set for the /wsgi "directory":

> The problem is here, if you configure cherokee in this way, you are telling
> uWSGI (or fastcgi or scgi or whatever CGI technology) that the SCRIPT_NAME
> is set to "/wsgi"
>
> So you cannot use Graham Dumpleton's mod_wsgi files, but you have to use
> uwsgi module:
>
>
> import uwsgi
>
> def application(env, start_response):
>    ...
>
> uwsgi.application = {'/wsgi':application}
>
> (remember that this module must be in the pythonpath)
>
> in this way you are creating a WSGI app under the "/wsgi" SCRIPT_NAME
>
> This has nothing to do with cherokee or uWSGI. This is how the WSGI
> standard works.

I can't find that the WSGI standard requires  the WSGI server to route
to the applications.
Ussualy that is left to middleware.


-- 
damjan


More information about the uWSGI mailing list