Differences

This shows you the differences between two versions of the page.

Link to this comparison view

apache_error_documents [2013/08/26 15:05] (current)
Line 1: Line 1:
 +====== Apache Error Documents ======
  
 +  * [[Apache]]
 +
 +  * [[https://​httpd.apache.org/​docs/​2.2/​mod/​core.html#​ErrorDocument|mod_core:​ ErrorDocument]]
 +
 +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:
 +
 +<​code>​
 +ErrorDocument 403 /err403.php
 +</​code>​
 +
 +Either one of these will display the string "​err403.php"​
 +
 +<​code>​
 +ErrorDocument 403 err403.php
 +ErrorDocument 403 ./​err403.php
 +</​code>​