diff --git a/etc/nginx/includes/error_pages.conf b/etc/nginx/includes/error_pages.conf index d603ead..b68b5bd 100644 --- a/etc/nginx/includes/error_pages.conf +++ b/etc/nginx/includes/error_pages.conf @@ -1,6 +1,7 @@ ## Directives to handle error page. # Designed to be included in any server{} block. +error_page 400 /400.html; error_page 401 /401.html; error_page 403 /403.html; error_page 404 /404.html; @@ -10,6 +11,12 @@ error_page 502 /502.html; error_page 503 /503.html; error_page 504 /504.html; +location = /400.html { + root /usr/share/nginx/html/error-pages; + internal; + #access_log off; +} + location = /401.html { root /usr/share/nginx/html/error-pages; internal; diff --git a/share/nginx/html/error-pages/400.html b/share/nginx/html/error-pages/400.html new file mode 100644 index 0000000..f013526 --- /dev/null +++ b/share/nginx/html/error-pages/400.html @@ -0,0 +1,43 @@ + + + + + + + +400 Bad Request + + + + + + +
+
+
+

Oops! Bad Request

+

400

+
+

Sorry, we could not understand your request.

+

Probably you're typing incorrect protocol, malformed syntax, incorrectly typed URL, or a URL that contains illegal characters.

+

For questions or problems, please contact our support team.

+

+
+
+ + + \ No newline at end of file