location ~ ^(.+\.php)(.*)$ {
root /www/test;
include fastcgi.conf;
fastcgi_index index.php;
fastcgi_pass fast_cgi;
set $path_info "";
set $real_script_name $fastcgi_script_name;
if ($fastcgi_script_name ~ "^(.+?\.php)(/.+)$") {
set $real_script_name $1;
set $path_info $2;
}
fastcgi_param SCRIPT_FILENAME $document_root$real_script_name;
fastcgi_param SCRIPT_NAME $real_script_name;
fastcgi_param PATH_INFO $path_info;
#if ($fastcgi_script_name ~ ":")
#{
#return 404;
#}
}
阅读(971) | 评论(0) | 转发(0) |