nginx配置
location ~ \.php(.*)$ #正则匹配.php后的pathinfo部分
{
root /home/wwwroot/default;
fastcgi_pass 127.0.0.1:9000;
fastcgi_index index.php;
fastcgi_param SCRIPT_FILENAME $DOCUMENT_ROOT$fastcgi_script_name;
fastcgi_param PATH_INFO $1;
include fastcgi_params;
}
网友评论