fix: prevent public status redirect loop
This commit is contained in:
@@ -20,10 +20,16 @@ location = /quant-os/status/index.html {
|
||||
return 308 https://$host/quant-os/status/;
|
||||
}
|
||||
|
||||
location ^~ /quant-os/status/ {
|
||||
root /srv/www;
|
||||
index index.html;
|
||||
try_files $uri $uri/ =404;
|
||||
location = /quant-os/status/ {
|
||||
alias /srv/www/quant-os/status/index.html;
|
||||
default_type text/html;
|
||||
add_header Cache-Control "no-cache" always;
|
||||
add_header X-Content-Type-Options "nosniff" always;
|
||||
}
|
||||
|
||||
location ^~ /quant-os/status/ {
|
||||
root /srv/www;
|
||||
try_files $uri =404;
|
||||
add_header Cache-Control "no-cache" always;
|
||||
add_header X-Content-Type-Options "nosniff" always;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user