> 2012/2/17 Roberto De Ioris <[email protected]>: > >> are not you missing --http-modifier1 5 ? > > Yes, it helps. My next (unsuccessfull) step is: > > $ cat /home/enp/uwsgi/hello.psgi > sub {[200, ['Content-Type' => 'text/plain'], ['Hi, ' . > shift->{REMOTE_ADDR}]]} > > $ cat /home/enp/uwsgi/uwsgi.ini > [uwsgi] > http = 0.0.0.0:8080 > plugins = psgi > route = ^/hello uwsgi:,5,0,/home/enp/uwsgi/hello.psgi
the last part of the uwsgi router is the appid, not the app path you may want somtehing like this: [uwsgi] http = 0.0.0.0:8080 plugins = psgi mount = hello=/home/enp/uwsgi/hello.psgi route = ^/hello uwsgi:,5,0,hello mount = goodbye=/home/enp/uwsgi/goodbye.psgi route = ^/goodbye uwsgi:,5,0,goodbye or more extreme (using new config logic): [uwsgi] http = 0.0.0.0:8080 plugins = psgi for = hello goodbye mount = %(_)=/home/enp/uwsgi/%(_).psgi route = ^/%(_) uwsgi:,5,0,%(_) endfor = -- Roberto De Ioris http://unbit.it _______________________________________________ uWSGI mailing list [email protected] http://lists.unbit.it/cgi-bin/mailman/listinfo/uwsgi
