server {
listen 82;
server_name localhost;
root F:/wwwroot/phpcms/;
index index.html index.htm index.php;
location ~ \.php {
fastcgi_pass 127.0.0.1:9000;
index index.php;
include fastcgi_params;
fastcgi_param PATH_INFO $fastcgi_script_name; #加的就是這一句了
fastcgi_param SCRIPT_FILENAME F:/wwwroot/phpcms$fastcgi_script_name;
}
發(fā)表評論