> This is my first post this list.  I am a fairly new uwsgi/nginx user and
> want to replace apache with the nginx/uwsgi combination on my server.
>
> On Debian I have
>
> ii  uwsgi                      1.9.17.1-5
> amd64        fast, self-healing application container server
> ii  uwsgi-core               1.9.17.1-5
> amd64        fast, self-healing application container server (core)
> ii  uwsgi-emperor          1.9.17.1-5
> amd64        fast, self-healing application container server (emperor
> scripts)
> ii  uwsgi-plugin-python   1.9.17.1-5
> amd64        Python WSGI plugin for uWSGI
> ii  nginx-common          1.4.3-2
> all          small, powerful, scalable web/proxy server - common files
> ii  nginx-full                  1.4.3-2
> amd64        nginx web/proxy server (standard version)
>
> Without emperor mode I have no problem and the system is working using the
> following socket configuration in /etc/nginx/sites-enabled/web2py
>
> uwsgi_pass      unix:///var/run/uwsgi/app/web2py/socket;
>
> and with the following uwsgi-configuration:
>
> <uwsgi>
>     <socket>/var/run/uwsgi/app/web2py/socket</socket>
>     <pythonpath>/home/www-data/web2py/</pythonpath>
>     <plugins>python</plugins>
>     <mount>/=wsgihandler:application</mount>
>     <master/>
>     <processes>4</processes>
>     <harakiri>60</harakiri>
>     <reload-mercy>8</reload-mercy>
>     <cpu-affinity>1</cpu-affinity>
>     <stats>/var/run/uwsgi/app/web2py/stats.socket</stats>
>     <max-requests>2000</max-requests>
>     <limit-as>512</limit-as>
>     <reload-on-as>256</reload-on-as>
>     <reload-on-rss>192</reload-on-rss>
>     <uid>www-data</uid>
>     <gid>www-data</gid>
>     <no-orphans/>
> </uwsgi>
>
>
> Then I installed uwsgi-emperor and changed the default
> /etc/uwsg-emperor/emperor.ini:
>
> # vassals directory
> #emperor = /etc/uwsgi-emperor/vassals
> emperor = /etc/uwsgi/apps-enabled/
> UWSGI_VASSAL_SOCKET=/var/run/uwsgi/app/%n/socket --emperor $emperor
>

do not do that: UWSGI_VASSAL_SOCKET=xxx


let each vassal have its own <socket> directive. (in your specific case it
cannot even work a magic vars are expanded only in config files)

For starting the Emperor you only need the --emperor option.

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

Reply via email to