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

Roberto De Ioris roberto at unbit.it
Mon Jul 12 23:24:34 CEST 2010



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

The (ipotetic) url can be:

/wsgi/one/two

Cherokee will decompose it in

SCRIPT_NAME /wsgi
PATH_INFO /one/two

You have to define a /wsgi app in uWSGI. If you do not map
your application to /wsgi it will be automatically mapped to "/"
so uWSGI will return the "app not found" error.

By the way, defining app mountpoints in uWSGI is very easy so i do
not think you will have particular problems.

In case of emergency you can force SCRIPT_NAME to a particular value (even
empty) from the Cherokee admin and totally remove the need of defining a
/wsgi app.

--
Roberto De Ioris
http://unbit.it



More information about the uWSGI mailing list