diff --git a/deploy/docker/templates/nginx/nginx-app-http.conf.template.sh b/deploy/docker/templates/nginx/nginx-app-http.conf.template.sh index 9ef9ac6306..9d6dedeb57 100644 --- a/deploy/docker/templates/nginx/nginx-app-http.conf.template.sh +++ b/deploy/docker/templates/nginx/nginx-app-http.conf.template.sh @@ -74,7 +74,7 @@ server { } # If the path has an extension at the end, then respond with 404 status if the file not found. - location ~ \.[a-z]+$ { + location ~ ^/(?!supervisor/).*\.[a-z]+$ { try_files \$uri =404; } diff --git a/deploy/docker/templates/nginx/nginx-app-https.conf.template.sh b/deploy/docker/templates/nginx/nginx-app-https.conf.template.sh index 8028b37e0a..a48107a72f 100644 --- a/deploy/docker/templates/nginx/nginx-app-https.conf.template.sh +++ b/deploy/docker/templates/nginx/nginx-app-https.conf.template.sh @@ -91,7 +91,7 @@ server { } # If the path has an extension at the end, then respond with 404 status if the file not found. - location ~ \.[a-z]+$ { + location ~ ^/(?!supervisor/).*\.[a-z]+$ { try_files \$uri =404; }