亲测可行,感谢https://blog.csdn.net/zy799894671/article/details/38045513
server
{
listen 80;
server_name XXXX;
index index.html index.htm index.php;
root /XXXX;
location /
{
root /XXXX;
error_page 405 =200 http://$host$request_uri;
}
location ~ .*.php?$
{
include conf/fcgi.conf;
fastcgi_pass 127.0.0.1:9000;
fastcgi_index index.php;
}
}
网友评论