diff --git a/config/custom-error-page/error-page.conf b/config/custom-error-page/error-page.conf index e819e63..71706cf 100644 --- a/config/custom-error-page/error-page.conf +++ b/config/custom-error-page/error-page.conf @@ -18,4 +18,9 @@ location /inter-roman-var.woff2 { root /usr/share/nginx/html/custom-error-page/; } +location /bad_gateway_meme.png { + auth_basic off; + root /usr/share/nginx/html/custom-error-page/; +} + error_page 400 401 402 403 404 405 406 407 408 409 410 411 412 413 414 415 416 417 418 421 422 423 424 425 426 428 429 431 451 494 495 496 497 500 501 502 503 504 505 506 507 508 510 511 /custom-error-page.html; diff --git a/templates/custom-error-page/bad_gateway_meme.png b/templates/custom-error-page/bad_gateway_meme.png new file mode 100644 index 0000000..c71cd13 Binary files /dev/null and b/templates/custom-error-page/bad_gateway_meme.png differ diff --git a/templates/custom-error-page/custom-error-page.css b/templates/custom-error-page/custom-error-page.css index 4b95be7..b466b33 100644 --- a/templates/custom-error-page/custom-error-page.css +++ b/templates/custom-error-page/custom-error-page.css @@ -43,6 +43,22 @@ html { justify-content: center; align-items: center; } +/* Define individual background color for http status codes */ +div[class*='status-1'] { + background-color: #78909C !important; +} +div[class*='status-2'] { + background-color: #1e88e5 !important; +} +div[class*='status-3'] { + background-color: #f44336 !important; +} +div[class*='status-4'] { + background-color: #f44336 !important; +} +div[class*='status-5'] { + background-color: #f1c40f !important; +} @media (max-width: 1023px) { .left svg { min-height: 200px; diff --git a/templates/custom-error-page/custom-error-page.html b/templates/custom-error-page/custom-error-page.html index 76d006d..bebd07b 100644 --- a/templates/custom-error-page/custom-error-page.html +++ b/templates/custom-error-page/custom-error-page.html @@ -13,7 +13,7 @@
-
+
">
- - The page you were looking for may have been deleted or - moved. + + + + + Your access to this resource is denied
+ We could not verify that you are authorized to access this resource. + + Sorry, but you don't have permission to access this resource. + + The page you were looking for may have been deleted or moved. - Your browser sent a request that the server was unable - to process. + Your browser sent a request that the server was unable to process. + + Sorry, our site is temporarily unavailable.
+ The server is temporarily unable to service your request due to maintenance downtime or capacity problem.
+ Please try again in a few minutes. + + Sorry, our site is currently experiencing errors.
+ Our engineers are working to resolve this issue.
+ Please try accessing this resource again in a few minutes. - The server encountered an error and could not complete - your request. Please try again later. + Sorry, our site is currently experiencing technical difficulties.
+ Our engineers are working to resolve this issue
Something went wrong while trying to display this page. Please try again later. + +
Refreshing page in seconds
+
@@ -56,10 +73,23 @@

+ + +