User-dir mode can be done by using regex captures. Here is an example to configure your nginx:
location ~ ^/~(.+?)(/.*)?$ {
alias /home/$1/public_html$2;
index index.html index.htm;
autoindex on;
}
How can I wire in php-fpm going to a sock file that matches the user?
ReplyDeletee.g. fastcgi_pass unix:/var/run/php-fpm/$1.sock;
you may find a solution in the following link:
ReplyDeletehttp://forum.nginx.org/read.php?25,246788