alr fixes

This commit is contained in:
Didier Slof 2023-02-19 15:33:10 +01:00
parent 0d43e62320
commit 369eacc8c3
Signed by: didier
GPG key ID: 01E71F18AA4398E5
2 changed files with 5 additions and 4 deletions

View file

@ -3,4 +3,5 @@
# copy server files # copy server files
cp -r /custom/vhost.d/* /etc/nginx/vhost.d cp -r /custom/vhost.d/* /etc/nginx/vhost.d
cp -r /custom/conf.d/* /etc/nginx/conf.d cp -r /custom/conf.d/* /etc/nginx/conf.d
cp -r /custom/error_pages/* /usr/share/nginx/html
mv /custom/error_pages /usr/share/nginx/html/errors

View file

@ -294,9 +294,9 @@ server {
{{- end }} {{- end }}
{{ $globals.access_log }} {{ $globals.access_log }}
error_page 503 /50x.html; error_page 503 /503.html;
location = /50x.html { location = /503.html {
root /usr/share/nginx/html; root /usr/share/nginx/html/errors;
} }
location / { location / {
return 503; return 503;