diff --git a/nginx/templates/script.conf.template b/nginx/templates/script.conf.template index 1827fa6ee3..b5d20872d3 100644 --- a/nginx/templates/script.conf.template +++ b/nginx/templates/script.conf.template @@ -40,8 +40,9 @@ server { add_header 'Access-Control-Allow-Headers' 'traceparent,tracestate'; location / { - # Alias to the script file - alias /usr/share/nginx/html/fmtm/install.sh; + # Serve FMTM install script /usr/share/nginx/html/fmtm/install.sh + root /usr/share/nginx/html/fmtm; + try_files /install.sh /install.sh; # Allow executing shell scripts directly in the browser default_type text/plain;