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;