APACHE下目录访问的问题

xpace 2003-11-25 02:23:42
为什么我一定输入 http://localhost/dir/才能访问http://localhost/dir/index.php
而输入http://localhost/dir就说无法找到404错误
...全文
69 5 打赏 收藏 转发到动态 举报
写回复
用AI写文章
5 条回复
切换为时间正序
请发表友善的回复…
发表回复
ustcfrank 2003-11-27
  • 打赏
  • 举报
回复
很奇怪
apache同样的配置
在windows xp下就会有上面的问题
在windows 2000下就没问题

和操作系统有关...
ustcfrank 2003-11-27
  • 打赏
  • 举报
回复
同意 yank1980(现代包身工)
yank1980 2003-11-27
  • 打赏
  • 举报
回复
apache下面目录后的“/”是一定要有的。。。
否则就不认。。。反正我是没有找到解决的办法
xpace 2003-11-26
  • 打赏
  • 举报
回复
当然添加了
zykj_2000 2003-11-26
  • 打赏
  • 举报
回复
有没有添加
DirectoryIndex index.html index.html.var index.htm index.php index.php3

24,923

社区成员

发帖
与我相关
我的任务
社区描述
Web 开发 Apache
社区管理员
  • Apache
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧