Merge pull request #6 from lfayer/master

different ways to define custom error messages
This commit is contained in:
Phan An 2015-02-10 09:59:35 +08:00
commit 118dfe86ed
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
```
```