解决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;   } }

  

posted @ 2022-03-07 00:50  编程混子  阅读(165)  评论(0编辑  收藏  举报