Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations TouchToneTommy on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Custom 403 Errordoc problem

Status
Not open for further replies.

Johnb175

Technical User
Mar 26, 2004
22
US
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.
 
ok well i musta missed the freakin post about the error page needing to be 512 bytes... it works now :p
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top