Skip to content

Commit

Permalink
build: fix nginx redirection for mapnow url
Browse files Browse the repository at this point in the history
  • Loading branch information
spwoodcock committed Nov 6, 2024
1 parent 54c48cf commit db0674e
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions nginx/templates/fmtm.conf.template
Original file line number Diff line number Diff line change
Expand Up @@ -41,8 +41,11 @@ server {

location /mapnow {
# Serve FMTM mapper frontend under /usr/share/nginx/html
root /usr/share/nginx/html/fmtm/mapper;
try_files $uri $uri/ /index.html;
# NOTE here we use alias instead of root
# to ensure the location part is replaced by the alias part
# i.e. they don't stack as mapnow/mapnow and cause a loop
alias /usr/share/nginx/html/fmtm/mapper;
try_files $uri $uri/ /mapnow/index.html;
}

location / {
Expand Down

0 comments on commit db0674e

Please sign in to comment.