From daf7b2fb3954f00eafd24354fe698fe96bf327b2 Mon Sep 17 00:00:00 2001 From: Leon Fayer Date: Mon, 9 Feb 2015 14:32:29 -0500 Subject: [PATCH] different ways to define custom error messages --- README.md | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/README.md b/README.md index 5c4bf5f..8b05ff9 100644 --- a/README.md +++ b/README.md @@ -309,11 +309,9 @@ php_value max_execution_time 240 ### Custom Error Pages ``` apacheconf -ErrorDocument 400 /errors/breakingbad.html -ErrorDocument 401 /errors/notrespassing.html -ErrorDocument 403 /errors/mordor.html +ErrorDocument 500 "Houston, we have a problem." +ErrorDocument 401 http://error.yourdomain.com/mordor.html ErrorDocument 404 /errors/halflife3.html -ErrorDocument 500 /errors/notabugitsafeature.html ``` ### Force Downloading @@ -354,4 +352,4 @@ AddHandler application/x-httpd-php55 .php # Alternatively, you can use AddType AddType application/x-httpd-php55 .php -``` \ No newline at end of file +```