different ways to define custom error messages

This commit is contained in:
Leon Fayer 2015-02-09 14:32:29 -05:00
parent 2e25cf45be
commit daf7b2fb39
1 changed files with 3 additions and 5 deletions

View File

@ -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
```
```