[users@httpd] help ErrorDocument directive with Apache 2.2.2

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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

 


[Index of Archives]     [Open SSH Users]     [Linux ACPI]     [Linux Kernel]     [Linux Laptop]     [Kernel Newbies]     [Security]     [Netfilter]     [Bugtraq]     [Squid]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Samba]     [Video 4 Linux]     [Device Mapper]

  Powered by Linux