httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Cesar Jorge Martinez Mata" <cjmarti...@hi-iberia.es>
Subject [users@httpd] help ErrorDocument directive with Apache 2.2.2
Date Thu, 22 Jun 2006 15:47:17 GMT
Hi,

 

I have configurated the 404 ErrorDocument directive (file does not exist),
but it is not redirecting to error page.

 

The httpd.conf is:

 

DocumentRoot "/disk2/des/WEB"

<Directory "/disk2/des/WEB">

   ErrorDocument 404 /error_not_found.html

.

</Directory>

 

If I go to browser, the page exists: http://desa:9040/error_not_found.html

 

If I change the ErrorDocument by a full URL, then it is redirect correctly:

DocumentRoot "/disk2/des/WEB"

<Directory "/disk2/des/WEB">

   ErrorDocument 404 http://desa:9040/error_not_found.html

.

</Directory>

 

If I change the ErrorDocument by the default or a message ".", then does not
go:

DocumentRoot "/disk2/des/WEB"

<Directory "/disk2/des/WEB">

   ErrorDocument 404 default

.

</Directory>

 

My configuration it is bad?

 

My apache I compiled in Solaris 8, with gcc 2.95 and:

./configure --prefix=/app/apache-2.2.2 \

--enable-rule=SHARED_CORE \

--enable-rule=SHARED_CHAIN \

--enable-module=so \

--enable-module=most \

--enable-shared=max \

--enable-authnz-ldap \

--enable-ldap \

--with-ldap \

--enable-cache \

--enable-disk-cache \

--enable-file-cache \

--enable-proxy \

--enable-ssl \

--with-ssl=/usr/local/ssl

 

Thanks in advance,

Cesar Jorge

 


Mime
View raw message