From 369eacc8c3446066744f9bad1ae3b103d2841641 Mon Sep 17 00:00:00 2001 From: faulty Date: Sun, 19 Feb 2023 15:33:10 +0100 Subject: [PATCH] alr fixes --- custom/proxy/90-copy-files.sh | 3 ++- custom/proxy/config/nginx.tmpl | 6 +++--- 2 files changed, 5 insertions(+), 4 deletions(-) diff --git a/custom/proxy/90-copy-files.sh b/custom/proxy/90-copy-files.sh index 7d580bd..b95d96e 100644 --- a/custom/proxy/90-copy-files.sh +++ b/custom/proxy/90-copy-files.sh @@ -3,4 +3,5 @@ # copy server files cp -r /custom/vhost.d/* /etc/nginx/vhost.d cp -r /custom/conf.d/* /etc/nginx/conf.d -cp -r /custom/error_pages/* /usr/share/nginx/html \ No newline at end of file + +mv /custom/error_pages /usr/share/nginx/html/errors \ No newline at end of file diff --git a/custom/proxy/config/nginx.tmpl b/custom/proxy/config/nginx.tmpl index ae6c01f..c1b4332 100644 --- a/custom/proxy/config/nginx.tmpl +++ b/custom/proxy/config/nginx.tmpl @@ -294,9 +294,9 @@ server { {{- end }} {{ $globals.access_log }} - error_page 503 /50x.html; - location = /50x.html { - root /usr/share/nginx/html; + error_page 503 /503.html; + location = /503.html { + root /usr/share/nginx/html/errors; } location / { return 503;