Ok I have read the docs and configured my server accordingly and have had no luck getting this to work. I have 4 vhost configured on this windows server under c:\web\vhost1 c:\web\vhost2 c:\web\vhost3 etc. I wanted to make one dir to share amongst these 3 vhost for custom errors. I made c:\web\errors. in my httpd.conf I did the following:
alias /errors/ c:/web/errors
<Directory c:/web/vhost1>
Errordocument 403 /errors/403.htm
</Directory>
Now when i request a page on that vhost that is forbidden it does not show the custom error page. Yet if i type the page comes up fine. So I know the alias is working. I have even tried doing the following:
ErrorDocument 403 c:/web/errors/403.htm
Static paths in a errordocument do not seem to work. Why is the custom error doc not showing when i request a forbidden page? Any help would be greatly appreciated.
alias /errors/ c:/web/errors
<Directory c:/web/vhost1>
Errordocument 403 /errors/403.htm
</Directory>
Now when i request a page on that vhost that is forbidden it does not show the custom error page. Yet if i type the page comes up fine. So I know the alias is working. I have even tried doing the following:
ErrorDocument 403 c:/web/errors/403.htm
Static paths in a errordocument do not seem to work. Why is the custom error doc not showing when i request a forbidden page? Any help would be greatly appreciated.