关于apache的配置,非常奇怪!

由 bluespray 在 11-20-2003 18:29 发表:

关于apache的配置,非常奇怪!

我配置了apache的虚拟主机,

=============================

 1<virtualhost xxx.xxx.xxx.xxx="">   
 2  
 3ServerAdmin [email protected]   
 4  
 5DocumentRoot /var/www/user_redirect/   
 6  
 7ServerName home.test.com   
 8  
 9ErrorLog /var/log/apache/user_error.log   
10  
11CustomLog /var/log/apache/user_access.log common   
12  
13ErrorDocument 404 /404.html   
14  
15</virtualhost>

==================================

自定义了站点的404页面为站点根目录下的404.html文件. 却总是不调用404.html,在浏览器中输入 http://home.test.com/404.html可以正常访问!

我是在安装的是Apache/1.3.26 ,请问有没有知道为什么啊?

我只需要转向一个本地的URL-path来处理这个问题!!!


由 r2007 在 11-20-2003 22:47 发表:


试试 ErrorDocument 404 /var/www/user_redirect/404.html


由 bluespray 在 11-21-2003 08:45 发表:


都试过了,不行啊!


由 Glue 在 11-21-2003 10:57 发表:


apachectl configtest

看看有没有别的问题。

我试过,可以的,就用

ErrorDocument 404 /404.html


-_-


由 bl

Published At
Categories with 服务器类
Tagged with
comments powered by Disqus