Custom Error Documents - Need Some Help.
Posted: 10. January 2009 21:33
I'm trying to use custom error pages, but I'm unable to succeed.
What I'm wanting to do is have a universal 404.html page to display across every site without having to add the 404.html document to every site folder.
I've tried using an Alias "/error/ in the httpd-xampp.conf file, then in my httpd.conf file I add ErrorDocument 404 "/error/404.html", but it doesn't work.
The Alias is like this:
Thanks for your help.
What I'm wanting to do is have a universal 404.html page to display across every site without having to add the 404.html document to every site folder.
I've tried using an Alias "/error/ in the httpd-xampp.conf file, then in my httpd.conf file I add ErrorDocument 404 "/error/404.html", but it doesn't work.
The Alias is like this:
- Code: Select all
Alias /error/ "C:/errors/"
<Directory "C:/errors">
AllowOverride AuthConfig
Order allow,deny
Allow from all
</Directory>
Thanks for your help.