On 01/12/2016 10:36 AM, Roberto De Ioris wrote:
> Hi, ensure you have internal routing support (you should get a warning in
> your startup logs about it).
>
> If you have it, double check this thing:
>
> SCRIPT_NAME is here:
>
> wsgi_req->appid, wsgi_req->appid_len
>
> wsgi_req->app_id -> must be generated calling uwsgi_get_app_id()
I found my error, the "uwsgi_get_app_id" function has a funny
side-effect on the first wsgi_req argument.

When no key is found it first tries appid, and if that holds nothing it
tries script_name, in reality i could just call it this way :

int app_id = uwsgi_get_app_id( wsgi_req, NULL, 0, modifier1);

But this function needs to be called regardless of there is a appid on
wsgi_req or not, and I did assume that i needed that appid on the
wsgi_req stucture :-)

Hope this can save others the confusion :-) But i learned to setup uwsgi
in a debug friendly way :-)

Regards

/BL


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

Reply via email to