nginx服务器URL无法自动添加index.php
2017-12-13 16:37
537 查看
请教个nginx问题,添加try_files $uri $uri/index.php /index.php?$query_string;,类似www.mydomain.com/admin这样的URL可以解析,但是单纯访问www.mydomain.com却提示403错误,www.mydomain.com/index.php这样手动添加index.php后可以正常解析,有遇到类似问题的吗?
![](https://images2017.cnblogs.com/blog/738045/201712/738045-20171213163630847-48546428.png)
相关文章推荐
- nginx服务器去掉url中的index.php 和 配置path_info
- Nginx服务器下ThinkPHP5访问出现404以及URL隐藏index.php
- ThinkPHP中通过URL重写隐藏应用的入口文件index.php的相关服务器的配置
- CI在nginx环境下去掉url中的index.php
- nginx服务器绑定多个域名、支持pathinfo路由、隐藏index.php入口文件
- nginx去掉url中的index.php
- ThinkPHP框架在nginx+https环境下无法去除index.php ?
- ubuntu nginx+mysql+php 服务器环境自动配置脚本
- nginx服务器 配置 ThinkPHP隐藏Index.php
- 阿里云服务器cent0S安装web环境PHP+MySql+Nginx,给nginx添加网站
- Apache & nginx 的地址重写 url_rewrite,省略 index.php
- apache(.htaccess)、nginx的URL重新--隐藏index.php
- URL_MODEL 2 不能访问 在APACHE服务器上的访问方式上去除index.php
- 在nginx下去掉ci框架url中的index.php
- ThinkPHP 在nginx环境下去掉URL中的index.php
- 在APACHE服务器上的访问方式上去除index.php nginx去掉index.php
- ThinkPHP 在nginx环境下去掉URL中的index.php
- php正则自动给 URL添加链接,并添加nofollow属性
- Nginx web服务器 安装 配置PHP SSL 反向代理 负载均衡 web缓存 URL 重写 写分离
- 添加服务到开机自动启动(centos7开机自启动nginx,php-fpm)