From cf1ef4257c8e07f3bf900379fc48c051f7c6dbf6 Mon Sep 17 00:00:00 2001 From: Raymonzut <40148684+Raymonzut@users.noreply.github.com> Date: Tue, 16 Jun 2020 15:55:35 +0200 Subject: [PATCH] Add basic 404 page --- client/nginx.conf | 5 +++++ client/public/error/404.html | 10 ++++++++++ 2 files changed, 15 insertions(+) create mode 100644 client/public/error/404.html diff --git a/client/nginx.conf b/client/nginx.conf index b628e97..abe846e 100644 --- a/client/nginx.conf +++ b/client/nginx.conf @@ -26,6 +26,11 @@ http { alias /app/assets/styling; } + error_page 404 /404.html; + location = /404.html { + root /app/error; + } + error_page 500 502 503 504 /50x.html; location = /50x.html { root /usr/share/nginx/html; diff --git a/client/public/error/404.html b/client/public/error/404.html new file mode 100644 index 0000000..579b7fb --- /dev/null +++ b/client/public/error/404.html @@ -0,0 +1,10 @@ + + +
+ +