server {
listen 80;
server_name localhost;
location / {
root /product/test/dev/web/src/;
index index.html index.htm index.php;
}
error_page 500 502 503 504 /50x.html;
location = /50x.html {
root /data1/app/services/nginx/html;
}
location ~ \.php$ {
fastcgi_pass 172.17.0.2:9000;
fastcgi_index index.php;
fastcgi_param SCRIPT_FILENAME $document_root/index.php;
include /data1/app/services/nginx/fastcgi_params;
}
}
如题,我的配置是这样的,但是访问项目下的index.php总是会变成下载,PHP-FPM已经启动在9000端口,这个配置有问题吗,是在docker环境下的