21 lines
295 B
Caddyfile
Executable file
21 lines
295 B
Caddyfile
Executable file
{
|
|
admin "unix//run/caddy/admin.socket"
|
|
}
|
|
|
|
http:// {
|
|
root * /srv/http
|
|
file_server {
|
|
browse /etc/caddy/browse_template.html
|
|
hide \.*
|
|
}
|
|
|
|
templates
|
|
|
|
handle_errors {
|
|
@404 {
|
|
expression {http.error.status_code} == 404
|
|
}
|
|
rewrite @404 /404.html
|
|
}
|
|
}
|