diff --git a/src/nginxconfig.ejs b/src/nginxconfig.ejs index 994a1a3e7..3ce0c8413 100644 --- a/src/nginxconfig.ejs +++ b/src/nginxconfig.ejs @@ -254,7 +254,8 @@ server { <% Object.keys(httpPaths).forEach(function (path) { -%> location "<%= path %>" { - proxy_pass http://<%= ip %>:<%= httpPaths[path] %>; + # the trailing / will replace part of the original URI matched by the location. + proxy_pass http://<%= ip %>:<%= httpPaths[path] %>/; } <% }); %>