From 1ec4ba8212f2d262ff3d9e2f3fc11b4d8ff08ac8 Mon Sep 17 00:00:00 2001 From: Florian THIERRY Date: Sun, 22 Sep 2024 11:10:01 +0200 Subject: [PATCH] test conf prod. --- frontend/conf/nginx.conf | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/frontend/conf/nginx.conf b/frontend/conf/nginx.conf index b5ed339..861c8c1 100644 --- a/frontend/conf/nginx.conf +++ b/frontend/conf/nginx.conf @@ -37,7 +37,7 @@ http { # Everything under the Angular app is always redirected to Angular in the correct language location ~ ^/fr/ { alias /usr/share/nginx/html/fr/; - try_files $uri /fr/index.html?$args; + try_files $uri$args $uri$args/ /fr/index.html?$args; proxy_set_header Host $host:$server_port; proxy_set_header X-Forwarded-Host $server_name; proxy_set_header X-Real-IP $remote_addr; @@ -46,7 +46,7 @@ http { location ~ ^/en/ { alias /usr/share/nginx/html/en/; - try_files $uri /en/index.html?$args; + try_files $uri$args $uri$args/ /en/index.html?$args; proxy_set_header Host $host:$server_port; proxy_set_header X-Forwarded-Host $server_name; proxy_set_header X-Real-IP $remote_addr;