When setting an ErrorDocument
value that uses a file, the value must be a relative path to the DocumentRoot
. Otherwise, it will display that string.
This will display the contents of the 403.php
page:
ErrorDocument 403 /err403.php
Either one of these will display the string “err403.php”
ErrorDocument 403 err403.php ErrorDocument 403 ./err403.php