解决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; } }
本文来自博客园,作者:编程混子,转载请注明原文链接:https://www.cnblogs.com/Qyehui/p/15974313.html