![](002.gif)
搞不好这个,啥也没做就重启不了了,错误提示是- 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;
  • }
  • 复制代码

有大佬知道咋搞吗,