18 lines
258 B
Caddyfile
18 lines
258 B
Caddyfile
|
:80 {
|
||
|
root * /srv
|
||
|
file_server {
|
||
|
hide Caddyfile
|
||
|
hide .git .gitignore Caddyfile *.md
|
||
|
}
|
||
|
|
||
|
handle_errors {
|
||
|
@404 {
|
||
|
expression {http.error.status_code} == 404
|
||
|
}
|
||
|
rewrite @404 /404.html
|
||
|
file_server
|
||
|
}
|
||
|
|
||
|
log
|
||
|
metrics /metrics
|
||
|
}
|