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

@@ -90,12 +90,6 @@ data:
#Cache everything by default
set $no_cache 0;
error_page 404 /404.html;
location = /404.html {
root /usr/share/nginx/subdomain/$subdomain-web;
add_header Cache-Control "no-cache" always;
}
#Don't cache POST requests
if ($request_method = POST)
{
@@ -145,8 +139,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-web;
add_header Cache-Control "no-cache" always;
}
@@ -241,12 +235,6 @@ data:
#Cache everything by default
set $no_cache 0;
error_page 404 /404.html;
location = /404.html {
root /usr/share/nginx/subdomain/www;
add_header Cache-Control "no-cache" always;
}
#Don't cache POST requests
if ($request_method = POST)
{
@@ -296,8 +284,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;
add_header Cache-Control "no-cache" always;
}
@@ -392,12 +380,6 @@ data:
#Cache everything by default
set $no_cache 0;
error_page 404 /404.html;
location = /404.html {
root /usr/share/nginx/subdomain/dev01;
add_header Cache-Control "no-cache" always;
}
#Don't cache POST requests
if ($request_method = POST)
{
@@ -447,8 +429,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/dev01;
add_header Cache-Control "no-cache" always;
}

View File

@@ -99,12 +99,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)
@@ -154,8 +148,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;
}
@@ -276,8 +270,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;
}

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;
}

View File

@@ -86,12 +86,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;
}
@@ -263,8 +257,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;
}