解决Nginx的"File not Found"
作者:互联网
server { server_name demo.com; listen 80; index index.php; root "D:\www\pros"; location ~ ^(.*)\.php$ {
# 也可使用unix地址 fastcgi_pass localhost:9000; fastcgi_index index.php;
# PHP-FPM读取的文件路径如果与Nginx一致可使用$document_root替换黄颜色部分
# 通常情况下是不需要重新改写fastcgi_param系列配置选项的 fastcgi_param SCRIPT_FILENAME /mnt/d/www/pros$fastcgi_script_name; include ../conf/fastcgi_params; } }
标签:index,www,pros,param,Nginx,File,Found,php,fastcgi 来源: https://www.cnblogs.com/Qyehui/p/15974313.html