From 440050aac603d506f045695edf56a51edd439493 Mon Sep 17 00:00:00 2001 From: tkubica-edu Date: Tue, 19 Nov 2024 12:01:44 +0100 Subject: [PATCH] feat: adjust nginx.page.conf to include sub path --- nginx.page.conf | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/nginx.page.conf b/nginx.page.conf index 88e497a..a30e084 100644 --- a/nginx.page.conf +++ b/nginx.page.conf @@ -4,12 +4,12 @@ server { # Serve supported languages from the respective directories. location /search/en-US/ { - alias /usr/share/nginx/html/en-US/; - try_files $uri /en-US/index.html; + alias /usr/share/nginx/html/search/en-US/; + try_files $uri /search/en-US/index.html; } location /search/de/ { - alias /usr/share/nginx/html/de/; - try_files $uri /de/index.html; + alias /usr/share/nginx/html/search/de/; + try_files $uri /search/de/index.html; } # Take the first of the user's accepted languages. @@ -26,7 +26,7 @@ server { # Redirect requests to `/` to the user's preferred language as determined above. location /search/ { - rewrite ^/$ search/$selected_language/ permanent; + rewrite ^/search/$ $selected_language/ permanent; } # redirect server error pages to the static page /50x.html