Welcome! Log In Create A New Profile

Advanced

Nginx + php + fpm plug'n'play configuration

Daniele Pignedoli
April 01, 2011 10:16AM
Hi guys, im new to Nginx.

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.

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
foo.example.com subdomain i will have a `foo` user and a
/var/www/vhosts/subdomains/foo/htdocs folder.

So, for every requests to *.example.com, i need to:
1. check if user and folder exists
2. invoke fpm with the matching user/group (maybe the group will be the same
for every subdomain)

Any suggestion about?
_______________________________________________
nginx mailing list
nginx@nginx.org
http://nginx.org/mailman/listinfo/nginx
Subject Author Posted

Nginx + php + fpm plug'n'play configuration

Daniele Pignedoli April 01, 2011 10:16AM

Re: Nginx + php + fpm plug'n'play configuration

Francis Daly April 01, 2011 11:34AM

Re: Nginx + php + fpm plug'n'play configuration

strae April 05, 2011 06:00AM

Re: Nginx + php + fpm plug'n'play configuration

Francis Daly April 05, 2011 07:52AM

Re: Nginx + php + fpm plug'n'play configuration

strae April 05, 2011 08:48AM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 166
Record Number of Users: 8 on April 13, 2023
Record Number of Guests: 500 on July 15, 2024
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready