Hello,

We would like to use uWSGI in "Emperor mode" with many individually developed 
python/bottle apps mounted at various points on the same subdomain. For example:

http://apps.getco.com/my_app01
http://apps.getco.com/my_app02
http://apps.getco.com/another_app07

We're using nginx as a front end webserver, and we so far have the following 
relevant portion of the nginx.conf:

http{
server{

        location / {
            root   html;
            include uwsgi_params;
            try_files $uri @fallback;
        }

        location @fallback {
            include uwsgi_params;
            uwsgi_param SCRIPT_NAME /;
            uwsgi_pass localhost:9000;
        }
}
}

We start uwsgi as follows:

CONF_DIR="$ROOT/apps/*/conf/app.xml"
$ROOT/vendor/uwsgi/uwsgi --emperor "$CONF_DIR" -M --daemonize 
$ROOT/local/logs/uwsgi.log --pidfile $ROOT/conf/uwsgi/uwsgi.pid --vacuum

And an example config from a file matching the $CONF_DIR pattern looks like 
this:

<uwsgi>
<socket>/tmp/uwsgi/myapp.sock</socket>
<master>1</master>
<processes>2</processes>
<env>ENVIRONMENT=production</env>
<chdir>%d/..</chdir>
<app mountpoint="/my_app01">
<module>myapp</module>
<callable>application</callable>
</app>
</uwsgi>

How can I get http://apps.getco.com/my_app01 to route to this vassal?

Thanks,
Duane Johnson


________________________________

This e-mail and its attachments are intended only for the individual or entity 
to whom it is addressed and may contain information that is confidential, 
privileged, inside information, or subject to other restrictions on use or 
disclosure. Any unauthorized use, dissemination or copying of this transmission 
or the information in it is prohibited and may be unlawful. If you have 
received this transmission in error, please notify the sender immediately by 
return e-mail, and permanently delete or destroy this e-mail, any attachments, 
and all copies (digital or paper). Unless expressly stated in this e-mail, 
nothing in this message should be construed as a digital or electronic 
signature.
_______________________________________________
uWSGI mailing list
[email protected]
http://lists.unbit.it/cgi-bin/mailman/listinfo/uwsgi

Reply via email to