27 lines
391 B
Caddyfile
27 lines
391 B
Caddyfile
# vim: ft=caddyfile
|
|
{
|
|
grace_period 60s
|
|
import email
|
|
}
|
|
|
|
#{
|
|
# servers :443 {
|
|
# protocol {
|
|
# experimental_http3
|
|
# }
|
|
# }
|
|
#}
|
|
|
|
(basicerrors) {
|
|
handle_errors {
|
|
#respond "{http.error.status_code} {http.error.status_text}"
|
|
|
|
rewrite * /{http.error.status_code}.jpg
|
|
root * /var/www/errors
|
|
file_server
|
|
}
|
|
}
|
|
|
|
import conf.d/*
|