访问html,txt文件正常,但是访问php文件报502;
nginx日志报错
其中,我的是enable-php.conf文件
location ~ [^/].php(/|$) { try_files $uri =404; fastcgi_pass unix:/tmp/php-cgi.sock; fastcgi_index index.php; include fastcgi.conf; }
改为
location ~ [^/].php(/|$) { try_files $uri =404; fastcgi_pass 127.0.0.1:9000; fastcgi_index index.php; include fastcgi.conf; }