Created
October 29, 2010 13:47
-
-
Save k0001/653592 to your computer and use it in GitHub Desktop.
nginx config: userdir php.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
location ~ ^/~(.+?)/(.+?\.php)$ { | |
root /home/$1/www/$2; | |
fastcgi_pass unix:/var/run/php-fpm/php-fpm.sock; | |
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name; | |
include fastcgi_params; | |
} | |
location ~ ^/~(.+?)(/.*)?$ { | |
alias /home/$1/www$2; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment