Add 404 handler
parent
9f5f41539f
commit
7d3a5e35da
|
@ -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
|
||||||
|
}
|
||||||
}
|
}
|
Loading…
Reference in New Issue