arwind 发表于 2017-5-25 15:52:14

enable-php.conf的问题..

nginx: "location" directive is not allowed here in /usr/local/nginx/conf/enable-php.conf:3 enable-php.conf
location ~ [^/]\.php(/|$)
{
try_files $uri =404;
fastcgi_pass 127.0.0.1:9000;
fastcgi_index index.php;
include fastcgi.conf;
}
请教军哥错在哪了..也不确定这个是不是原版的内容,提示出错之后改了几次.

licess 发表于 2017-5-25 19:57:46

这个和enable-php.conf没关系,要看你虚拟主机里的设置,一般都是你虚拟主机配置中有错误
页: [1]
查看完整版本: enable-php.conf的问题..