On 01/11/2016 09:27 AM, Roberto De Ioris wrote: >> Hi ... >> >> Thanks to Roberto, I now are able to register apps and relate them when >> mouting, but something is still missing. >> >> This is the main part of my C++ binding : >> >> https://github.com/druppy/spikes/blob/master/cpp/uwsgi/base.cpp >> >> Line 170 is my main request callback, line 148 is the mounting callback >> and line 93 is my register app function. >> >> Now I register an app without a problem, and on mount i bind the app to >> my mount point (as i understand it), and in the request handler I check >> for the appid in the request. >> >> The problem is, the app id is never set. >> >> The config file are here : >> >> https://github.com/druppy/spikes/blob/master/cpp/uwsgi/uwsgi_test.ini >> >> and I use a simple : curl http://localhost:8080/test to see if I could >> end up in the proper app. >> >> But i never get an appid, any idea of why ? >> >> /BL >> >> > hi, with --manage-script-name you intruct uWSGI to search for the appid in > the SCRIPT_NAME variable. In your case that var is not set, you can "fake > it" it with: > > route-run = setscriptname:/test > Ok, thanks ... that sounds like a good starting point, but I feel a bit silly ... i have this ini file :
[uwsgi] http-socket=127.0.0.1:8080 http-socket-modifier1=250 plugin = ./test_hello mount = /test=test manage-script-name = true route-run = setscriptname:/test But my request still don't get an appid (I expected "/test"), are there a way to get more debug info as to what uwsgi are doing ? i quess this means that wheatever request comes ind it should be set to scriptname "/test" ? This can of cause be changed by some kind of substitution later on ... Regards /BL _______________________________________________ uWSGI mailing list [email protected] http://lists.unbit.it/cgi-bin/mailman/listinfo/uwsgi
