15 lines
258 B
Caddyfile
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
|
|
}
|
|
}
|