> hi all, > i'd like to use uwsgi's emperor mode for shared hosting, mainly > serving php, cgi, static files. so far i have managed to set up > emperor mode with one vassal per domain, but my goal is to have one > vassal for every customer regardless of how many domains the customer > has, i want to assign him e.g. a vassal with 5 worker processes which > should be shared to serve all his domains. is that possible in uwsgi? > i have only found in the docs > http://projects.unbit.it/uwsgi/wiki/VirtualHosting but that is about > serving python webapps, not cgi/php/static and with different document > roots for each domain. thanks. > _______________________________________________ >
Hi, if your frontend-webserver correctly set the DOCUMENT_ROOT variable you should be able to use php, cgi and static file serving for multiple domains without problems. For static files add check-static-docroot = true (this will serve static files from the passed DOCUMENT_ROOT) For php you do not need special options. If you want to increase security just use php-allowed-docroot for cgi use cgi-from-docroot that works in a way similar to check-static-docroot. Remember to set the allowed extensions you want to use for php script and CGIs -- Roberto De Ioris http://unbit.it _______________________________________________ uWSGI mailing list [email protected] http://lists.unbit.it/cgi-bin/mailman/listinfo/uwsgi
