nginx重启失败咋搞
605
- weilai丶2017-07-31金牌会员100355

搞不好这个,啥也没做就重启不了了,错误提示是- nginx: "location" directive is not allowed here in /usr/local/nginx/conf/enable-php-pathinfo.conf:2- nginx: configuration file /usr/local/nginx/conf/nginx.conf test failed复制代码
enable-php-pathinfo.conf配置文件是这个
- location ~ [^/]\.php(/|$)
- {
- fastcgi_pass unix:/tmp/php-cgi.sock;
- fastcgi_index index.php;
- include fastcgi.conf;
- include pathinfo.conf;
- }
- 复制代码
有大佬知道咋搞吗,