Blog/Caddyfile
2021-12-23 09:55:33 +01:00

15 lines
258 B
Caddyfile

:8088 {
root * /usr/share/caddy
file_server
encode gzip zstd
try_files {path}.html {path} /
handle_errors {
@404 {
expression {http.error.status_code} == 404
}
rewrite @404 /404.html
file_server
}
}