13 lines
224 B
Caddyfile
13 lines
224 B
Caddyfile
:8080 {
|
|
root * /usr/share/caddy
|
|
file_server
|
|
encode gzip zstd
|
|
handle_errors {
|
|
@404 {
|
|
expression {http.error.status_code} == 404
|
|
}
|
|
rewrite @404 /404.html
|
|
file_server
|
|
}
|
|
}
|