Merged in feature/MAW-864-update-error-pages (pull request #48)

Feature/MAW-864 update error pages

* MAW-864: error page
This commit is contained in:
SRIRAM RAO TAKKALLAPELLY
2024-04-02 22:29:08 +00:00
parent 9c30c7c8fd
commit b70c605941
9 changed files with 928 additions and 729 deletions

View File

@@ -87,12 +87,6 @@ data:
#Cache everything by default
set $no_cache 0;
error_page 404 /404.html;
location = /404.html {
root /usr/share/nginx/subdomain/$subdomain;
add_header Cache-Control "no-cache" always;
}
#Don't cache POST requests
if ($request_method = POST)
{
@@ -141,8 +135,8 @@ data:
# redirect server error pages to the static page /50x.html
#
error_page 500 502 503 504 /50x.html;
location = /50x.html {
error_page 500 502 503 504 /500.html;
location = /500.html {
root /usr/share/nginx/subdomain/$subdomain;
add_header Cache-Control "no-cache" always;
}
@@ -264,8 +258,8 @@ data:
# redirect server error pages to the static page /50x.html
#
error_page 500 502 503 504 /50x.html;
location = /50x.html {
error_page 500 502 503 504 /500.html;
location = /500.html {
root /usr/share/nginx/subdomain/www;
}