diff --git a/custom/proxy/90-copy-files.sh b/custom/proxy/90-copy-files.sh index b95d96e..7d580bd 100644 --- a/custom/proxy/90-copy-files.sh +++ b/custom/proxy/90-copy-files.sh @@ -3,5 +3,4 @@ # copy server files cp -r /custom/vhost.d/* /etc/nginx/vhost.d cp -r /custom/conf.d/* /etc/nginx/conf.d - -mv /custom/error_pages /usr/share/nginx/html/errors \ No newline at end of file +cp -r /custom/error_pages/* /usr/share/nginx/html \ No newline at end of file diff --git a/custom/proxy/config/error_pages/503.html b/custom/proxy/config/error_pages/50x.html similarity index 93% rename from custom/proxy/config/error_pages/503.html rename to custom/proxy/config/error_pages/50x.html index c10ce76..50e1b7b 100644 --- a/custom/proxy/config/error_pages/503.html +++ b/custom/proxy/config/error_pages/50x.html @@ -1,6 +1,6 @@ - 503 Error + 50x Error -

503 Error

+

50x Error

Sorry, the server is currently unavailable. Please try again later.

\ No newline at end of file diff --git a/custom/proxy/config/nginx.tmpl b/custom/proxy/config/nginx.tmpl index c1b4332..ae6c01f 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 /503.html; - location = /503.html { - root /usr/share/nginx/html/errors; + error_page 503 /50x.html; + location = /50x.html { + root /usr/share/nginx/html; } location / { return 503;