Skip to content

Commit

Permalink
nginx: make redirects relative
Browse files Browse the repository at this point in the history
  • Loading branch information
wiedehopf committed Nov 26, 2024
1 parent 93efebb commit 4dc58c0
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions nginx.conf
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,7 @@ location /INSTANCE/globe_history/ {
}

location ~ ....-..-.. {
absolute_redirect off;
rewrite "^(.*)/globe_history/(....)-(..)-(..)/(.*)$" "$1/globe_history/$2/$3/$4/$5" last;
}

Expand Down Expand Up @@ -92,11 +93,13 @@ location /INSTANCE/aircraft_sil/ {
alias /usr/local/share/tar1090/aircraft_sil/;
add_header Cache-Control "public, max-age=1209600";
try_files $uri /aircraft_sil/ZZZZ.png;
absolute_redirect off;
}

location /INSTANCE {
alias HTMLPATH/;
try_files $uri $uri/ =404;
absolute_redirect off;
gzip off;
gzip_static off;

Expand Down

0 comments on commit 4dc58c0

Please sign in to comment.