Compare commits
3 commits
d5bd0b09c0
...
5da2f2cc80
Author | SHA1 | Date | |
---|---|---|---|
5da2f2cc80 | |||
6da0bf41e2 | |||
4b726b4339 |
1 changed files with 8 additions and 2 deletions
10
README.md
10
README.md
|
@ -14,8 +14,14 @@ With this snippet in the Caddyfile, for a site one can `import err` to handle er
|
||||||
|
|
||||||
```
|
```
|
||||||
(err) {
|
(err) {
|
||||||
root /err_css/* /www/err
|
@errpaths {
|
||||||
root /err_images/* /www/err
|
path /err_css/*
|
||||||
|
path /err_images/*
|
||||||
|
}
|
||||||
|
route @errpaths {
|
||||||
|
root * /www/err
|
||||||
|
file_server
|
||||||
|
}
|
||||||
respond /unknown_error_not_4xx_not_5xx "{http.error.status_code} {http.error.status_text}"
|
respond /unknown_error_not_4xx_not_5xx "{http.error.status_code} {http.error.status_text}"
|
||||||
|
|
||||||
handle_errors {
|
handle_errors {
|
||||||
|
|
Loading…
Reference in a new issue