Posted by:
mezia
(---.pool1.unallocated-110-128.orangehomedsl.co.uk)
Hi
I tried my luck but failed. I am trying to configure custom error 404 page in Virtual Host.
I tried 3 different ways but nothing is showing on my browser
First Way
--------
<VirtualHost *:80>
DocumentRoot d:/live/
ServerName www.domain.com
ServerAlias domain.com domain
ServerAdmin
webmaster@domain.comDirectoryIndex index.html index.php index.php3
RewriteEngine On
RewriteOptions Inherit
ErrorLog d:/wamp/logs/apache_error.log
CustomLog d:/wamp/logs/access.log common
ErrorDocument 404 /404error.html
</VirtualHost>
Second Way
----------
In httpd.conf
ErrorDocument 404 /404error.html
Third Way
----------
In .htaccess
ErrorDocument 404 /404error.html
Only following line appear in Apache access log when I use third way
xxx.xxx.xxx.xxx - - [13/Jan/2010:04:56:37 +0000] "GET /abc.html HTTP/1.1" 404 -
How to fix my 404 page? Please guide me