您的位置:首页 > 运维架构 > Nginx

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

2016-08-11 09:21 357 查看
原始的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;

        }
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签:  nginx 404
相关文章推荐