project-cloud/Caddyfile

19 lines
236 B
Caddyfile
Raw Permalink Normal View History

2023-11-15 13:21:52 +01:00
{
auto_https off
}
:8080 {
root * ./result/public
encode gzip
file_server
# redirect to your custom 404 page
handle_errors {
@404 {
expression {http.error.status_code} == 404
}
rewrite @404 /404.html
file_server
}
}