diff --git a/ui/container-files/etc/nginx/conf.d/default.conf b/ui/container-files/etc/nginx/conf.d/default.conf index e80ff31a9..672f488cc 100644 --- a/ui/container-files/etc/nginx/conf.d/default.conf +++ b/ui/container-files/etc/nginx/conf.d/default.conf @@ -26,6 +26,10 @@ server { root /usr/share/nginx/html; index index.html index.htm; + # The load balancer is configured to forward all requests prefixed with '/ui/' to this host + # The following rewrite rule removes '/ui' from the uri so that files can be referenced relative to the document root path.:w + rewrite ^/ui/(.*)$ /$1 last; + # Requires base href {in the index.html files} be set to "./" or "/ui//" e.g "/ui/it/" or "/ui/en/" ############################################################# location ~ ^/(cs|de|en|es|fr|it|ja|ko|pt|ru|zh-CN|zh-TW)/(.*) { try_files $uri $uri/ /$1/index.html?$args;