Fix some bugs

This commit is contained in:
2020-06-08 03:19:36 +02:00
parent f01da05d9d
commit 6787b446c3
12 changed files with 11268 additions and 62 deletions
+20
View File
@@ -0,0 +1,20 @@
:8080
root dist
file_server {
# If we visit /404.html directly we receive a 404 response, and not a 200.
hide 404.html
}
encode gzip
handle_errors {
@404 {
expression {http.error.status_code} == 404
}
rewrite @404 /404.html
file_server
}
log {
format single_field common_log
}