Add 404 handler

main
mat ess 2022-08-10 00:20:12 -04:00
parent 9f5f41539f
commit 7d3a5e35da
1 changed files with 8 additions and 0 deletions

View File

@ -10,4 +10,12 @@ http://static-mat-services.fly.dev/ {
:8080 { :8080 {
root * /var/www root * /var/www
file_server file_server
handle_errors {
@404 {
expression {http.error.status_code} == 404
}
rewrite @404 /404.html
file_server
}
} }