From 113a48d638e647f1ed7d5472fde3d9e5ec7250ef Mon Sep 17 00:00:00 2001 From: Aevann Date: Mon, 20 Feb 2023 20:34:58 +0200 Subject: [PATCH] add nginx 404 template --- files/templates/errors/WPD/404.html | 99 ++++++++++++++++++++++++++ files/templates/errors/rDrama/404.html | 99 ++++++++++++++++++++++++++ nginx.conf | 6 ++ 3 files changed, 204 insertions(+) create mode 100644 files/templates/errors/WPD/404.html create mode 100644 files/templates/errors/rDrama/404.html diff --git a/files/templates/errors/WPD/404.html b/files/templates/errors/WPD/404.html new file mode 100644 index 000000000..0b80e29b9 --- /dev/null +++ b/files/templates/errors/WPD/404.html @@ -0,0 +1,99 @@ + + + + + + + + + + + + + + + + Not Found - WPD + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + site banner + + + + +
+
+
+
+
+
+ :#marseyconfused: +
Not Found
+

+ That wasn't found. +

+ +
+
+
+
+
+
+ + diff --git a/files/templates/errors/rDrama/404.html b/files/templates/errors/rDrama/404.html new file mode 100644 index 000000000..94b8272bb --- /dev/null +++ b/files/templates/errors/rDrama/404.html @@ -0,0 +1,99 @@ + + + + + + + + + + + + + + + + Not Found - where did it go? - rDrama + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + site banner + + + + +
+
+
+
+
+
+ :#marseyconfused: +
Not Found - where did it go?
+

+ Someone typed something wrong and it was probably you, please do better. +

+ +
+
+
+
+
+
+ + diff --git a/nginx.conf b/nginx.conf index 7f02eb4ac..53763573b 100644 --- a/nginx.conf +++ b/nginx.conf @@ -28,6 +28,12 @@ server { alias /rDrama/files/assets/offline.html; include includes/headers; } + error_page 404 = /404.html; + location =/404.html { + alias /rDrama/files/templates/errors/rDrama/404.html; + include includes/headers; + add_header Cache-Control "no-store"; + } error_page 502 = /502.html; location =/502.html { alias /rDrama/files/templates/errors/rDrama/502.html;