Fix some bugs
This commit is contained in:
@@ -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
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user