[问题]如何配置让apache做到这一点

Web、Mail、Ftp、DNS、Proxy、VPN、Samba、LDAP 等基础网络服务
回复
ynzheng
帖子: 74
注册时间: 2005-12-28 14:12
联系:

[问题]如何配置让apache做到这一点

#1

帖子 ynzheng » 2006-07-24 9:01

如何配置让apache做到这一点?

我要访问 http://www.th9.net/test.html/

实际访问 http://www.th9.net/test.html

要访问 http://www.th9.net/test/

实际访问 http://www.th9.net/test (亦即http://www.th9.net/test.html
头像
oneleaf
论坛管理员
帖子: 10455
注册时间: 2005-03-27 0:06
系统: Ubuntu 12.04

#2

帖子 oneleaf » 2006-07-24 10:51

rewrite 可以完成.
ynzheng
帖子: 74
注册时间: 2005-12-28 14:12
联系:

#3

帖子 ynzheng » 2006-07-24 10:55

但是在我的虚拟主机中,没用rewrite,也是可以得

不知道是不是apache的一个配置参数呢?
头像
kukat
帖子: 266
注册时间: 2006-06-14 6:12
联系:

#4

帖子 kukat » 2006-07-27 1:28

就是rewrite
ynzheng
帖子: 74
注册时间: 2005-12-28 14:12
联系:

#5

帖子 ynzheng » 2006-07-27 9:02

可是在我的本地机上,即使将mod_rewrite去掉,重启服务器后,也可以访问
http://www.th9.net/test.html/

在我的本地机apache上,我访问,

http://domain.com/phpinfo
http://domain.com/phpinfo/
http://domain.com/phpinfo.php
http://domain.com/phpinfo.php/

都正常,即使将mod_rewrite去掉,重启服务器后,访问
http://domain.com/phpinfo.php
http://domain.com/phpinfo.php/
也正常!

可是在dreamhost服务器上,
http://www.th9.net/phpinfo
http://www.th9.net/phpinfo.php
访问正常!

http://www.th9.net/phpinfo/
http://www.th9.net/phpinfo.php/
则无法访问,为何?
回复