From 9746542ce8cbba46c4bff94cbf275ac63cca0f86 Mon Sep 17 00:00:00 2001 From: Ulf Gebhardt Date: Sat, 8 Jan 2022 06:08:17 +0100 Subject: [PATCH] even more --- .../bare_metal/nginx/sites-available/gradido.conf.ssl.template | 3 ++- .../bare_metal/nginx/sites-available/gradido.conf.template | 3 ++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/deployment/bare_metal/nginx/sites-available/gradido.conf.ssl.template b/deployment/bare_metal/nginx/sites-available/gradido.conf.ssl.template index 7aa3a59fa..334392d87 100644 --- a/deployment/bare_metal/nginx/sites-available/gradido.conf.ssl.template +++ b/deployment/bare_metal/nginx/sites-available/gradido.conf.ssl.template @@ -29,7 +29,8 @@ server { set $REWRITE_LEGACY_URLS "$NGINX_REWRITE_LEGACY_URLS"; if ($REWRITE_LEGACY_URLS = 'true') { rewrite ^/vue$ / permanent; - rewrite ^/vue/(.?)/?$ /$1 permanent; + rewrite ^/vue/$ / permanent; + rewrite ^/vue/(.+)/?$ /$1 permanent; } # Frontend (default) diff --git a/deployment/bare_metal/nginx/sites-available/gradido.conf.template b/deployment/bare_metal/nginx/sites-available/gradido.conf.template index ad0893eaa..c00ff346c 100644 --- a/deployment/bare_metal/nginx/sites-available/gradido.conf.template +++ b/deployment/bare_metal/nginx/sites-available/gradido.conf.template @@ -14,7 +14,8 @@ server { set $REWRITE_LEGACY_URLS "$NGINX_REWRITE_LEGACY_URLS"; if ($REWRITE_LEGACY_URLS = 'true') { rewrite ^/vue$ / permanent; - rewrite ^/vue/(.?)/?$ /$1 permanent; + rewrite ^/vue/$ / permanent; + rewrite ^/vue/(.+)/?$ /$1 permanent; } # Frontend (default)