zf2框架的php程序,nginx下运行提示404 not found

    xiaoxiao2023-09-19  0

    原始的nginx中的配置如下:

    location / {

                    # First attempt to serve request as file, then                 # as directory, then fall back to displaying a 404.                 try_files $uri $uri/ =404;

            }

    修改配置如下,解决404 not found

     location / {                 # First attempt to serve request as file, then                 # as directory, then fall back to displaying a 404.                 try_files $uri $uri/ /index.php?$args;         }

    转载请注明原文地址: https://ju.6miu.com/read-1279081.html
    最新回复(0)