Hi guys, im new to Nginx.<div><br></div><div>Im running on a ubuntu 10.04 server machine, and im trying to understand how to configure nginx in order to run a website with many subdomains, where every of them must run php with a different user, without restarting nginx or php5-fpm.</div>
<div><br></div><div>Basically, when i need to a subdomain, i have a script that create the server user, then his folder owned by him; for example, for the <a href="http://foo.example.com">foo.example.com</a> subdomain i will have a `foo` user and a /var/www/vhosts/subdomains/foo/htdocs folder.</div>
<div><br></div><div>So, for every requests to *.<a href="http://example.com">example.com</a>, i need to:</div><div>1. check if user and folder exists</div><div>2. invoke fpm with the matching user/group (maybe the group will be the same for every subdomain)</div>
<div><br></div><div>Any suggestion about?</div>