wildcard match for update page

This commit is contained in:
Ulf Gebhardt 2022-01-14 19:19:32 +01:00
parent 03350a76fb
commit 430af1ade6
Signed by: ulfgebhardt
GPG Key ID: DA6B843E748679C9
2 changed files with 14 additions and 17 deletions

View File

@ -25,10 +25,9 @@ server {
root $NGINX_UPDATE_PAGE_ROOT;
index updating.html;
#location / {
# alias $NGINX_UPDATE_PAGE_ROOT;
# index updating.html;
#}
location / {
try_files /updating.html =404;
}
#access_log /var/log/nginx/access.log main;

View File

@ -1,21 +1,19 @@
server {
server_name _;
listen 80;
listen [::]:80;
server_name _;
listen 80;
listen [::]:80;
include /etc/nginx/common/protect.conf;
include /etc/nginx/common/protect_add_header.conf;
include /etc/nginx/common/protect.conf;
include /etc/nginx/common/protect_add_header.conf;
root $NGINX_UPDATE_PAGE_ROOT;
index updating.html;
root $NGINX_UPDATE_PAGE_ROOT;
index updating.html;
#location / {
# alias $NGINX_UPDATE_PAGE_ROOT;
# index updating.html;
#}
access_log /var/log/nginx/access.log main;
location / {
try_files /updating.html =404;
}
#access_log /var/log/nginx/access.log main;
}