+ -
当前位置:首页 → 问答吧 → nginx配置问题,把index.php当目录解析

nginx配置问题,把index.php当目录解析

时间:2011-07-18

来源:互联网

http://服务器IP地址/index.php/news

服务器这样访问不了,直接返回404 但是本地 

 http://192.168.1.200:9000/shushao/index.php/news 能正常访问

怎么回事..URL 链接问题吗 , 服务器 是 nginx ,本地 是 apache , 估计是服务器把 index.php 当目录处理了 , 哪位兄弟知道怎么回事..谢了

作者: sindel   发布时间: 2011-07-18

location / {
 index index.html,index.php,index.htm;
 root /shushao/;
 }

作者: ihefe   发布时间: 2011-07-18

http://服务器IP地址/index.php/news
需要启用 path_info 或 urlrewrite

作者: xuzuning   发布时间: 2011-07-18

热门下载

更多