diff options
-rw-r--r-- | compose/nginx/nginx.conf | 2 | ||||
-rw-r--r-- | templates/nginx.conf.j2 | 4 |
2 files changed, 6 insertions, 0 deletions
diff --git a/compose/nginx/nginx.conf b/compose/nginx/nginx.conf index af5b482..452e608 100644 --- a/compose/nginx/nginx.conf +++ b/compose/nginx/nginx.conf @@ -52,4 +52,6 @@ http { add_header Strict-Transport-Security "max-age=31536000; includeSubDomains" always; include /etc/nginx/conf.d/*.conf; + + error_page 500 501 502 503 504 /50x.html; } diff --git a/templates/nginx.conf.j2 b/templates/nginx.conf.j2 index 1f6c71a..b8896b7 100644 --- a/templates/nginx.conf.j2 +++ b/templates/nginx.conf.j2 @@ -53,4 +53,8 @@ server { {% endif %} } + location = /50x.html { + root /usr/share/nginx/html; + } + } |