Monday, 19 August 2013

ErrorDocument outside of DocumentRoot without Alias

ErrorDocument outside of DocumentRoot without Alias

Currently my httpd.conf contains:
Alias /403.html /var/www/errors/403.html
ErrorDocument 403 /403.html
My document root is located at /var/www/html/*.
When I trigger a forbidden, the error page located within the folder is
shown, as expected.
However, when I visit the website at localhost/403.html, the error shows!
How can I have document errors outside of the document root, and not have
it accessible by the url alias?

No comments:

Post a Comment