From 27ca4740832f95c2d5aedc2af3854ac0a0a54f1c Mon Sep 17 00:00:00 2001 From: Ulf Gebhardt Date: Sat, 8 Jan 2022 06:05:38 +0100 Subject: [PATCH] more regex adjustments --- .../bare_metal/nginx/sites-available/gradido.conf.ssl.template | 2 +- .../bare_metal/nginx/sites-available/gradido.conf.template | 2 +- 2 files changed, 2 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 9b13020b7..6ba653bea 100644 --- a/deployment/bare_metal/nginx/sites-available/gradido.conf.ssl.template +++ b/deployment/bare_metal/nginx/sites-available/gradido.conf.ssl.template @@ -28,7 +28,7 @@ server { # Legacy URLS set $REWRITE_LEGACY_URLS "$NGINX_REWRITE_LEGACY_URLS"; if ($REWRITE_LEGACY_URLS = 'true') { - rewrite ^/vue(.+)/?$ /$1 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 be433639f..4d19e55a1 100644 --- a/deployment/bare_metal/nginx/sites-available/gradido.conf.template +++ b/deployment/bare_metal/nginx/sites-available/gradido.conf.template @@ -13,7 +13,7 @@ server { # Legacy URLS set $REWRITE_LEGACY_URLS "$NGINX_REWRITE_LEGACY_URLS"; if ($REWRITE_LEGACY_URLS = 'true') { - rewrite ^/vue(.+)/?$ /$1 permanent; + rewrite ^/vue(.?)/?$ $1 permanent; } # Frontend (default)