1、端口
- location ~ ^/~(.+?)/(.+/)?(.+?\.php)$ {
- root /home/$1/www/$2;
- fastcgi_pass 127.0.0.1:9000;
- fastcgi_index index.php;
- #fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
- fastcgi_param SCRIPT_FILENAME /home/$1/public_html/$2$3;
- include fastcgi_params;
-
}
-
-
location ~ ^/~(.+?)(/.*)?$ {
- alias /home/$1/public_html$2;
- #autoindex on;
-
}
2、socket
- location ~ ^/(.+?)/(.+/)?(.+?\.php)$ {
-
root /home/$1/www/$2;
-
fastcgi_pass unix:/tmp/php-fcgi.sock;
-
fastcgi_index index.php;
-
fastcgi_param SCRIPT_FILENAME /home/$1/www/$2$3;
-
include fastcgi_params;
-
}
-
-
location ~ ^/(.+?)(/.*)?$ {
-
alias /home/$1/www$2;
-
index index.php index.html index.htm;
-
}
参考地址:
http://laymanz.com/blog/?p=274
阅读(1512) | 评论(0) | 转发(0) |