Il giorno 25/feb/2011, alle ore 14.05, Jason Christa ha scritto:
>
> uWSGI config:
>
> [uwsgi]
> socket = /tmp/test.sock
> chmod-socket = 666
> processes = 1
> master = true
> vhost = true
>
> /var/www/test1/app.py:
>
> def application(environ, start_response):
> start_response('200 OK', [('Content-Type', 'text/html')])
> return "Hello Test1!
>
> /var/www/test2/app.py:
>
> def application(environ, start_response):
> start_response('200 OK', [('Content-Type', 'text/html')])
> return "Hello Test2!
>
> This config will only display the first site that you go to. If you change
> the name of /var/www/test2/wsgi.py to something else, both site work fine.
> _
Using ini (or yaml) files will put uWSGi in single interpreter mode (infact you
do not see the multiple interpreter banner
on startup). This is because in ini and yaml files you cannot define multiple
apps
This limit no more exists in 0.9.7
Simply use xml, command line options or shell env and your apps will start
working
--
Roberto De Ioris
http://unbit.it
_______________________________________________
uWSGI mailing list
[email protected]
http://lists.unbit.it/cgi-bin/mailman/listinfo/uwsgi