From 0e6dfdd0fe52ae31c8e6a0c9b525336da52dc584 Mon Sep 17 00:00:00 2001 From: andryyy Date: Mon, 2 Dec 2019 10:55:17 +0100 Subject: [PATCH] [Nginx] Catch case-insensitive /sogo$ request and redirect to /SOGo --- data/conf/nginx/includes/site-defaults.conf | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/data/conf/nginx/includes/site-defaults.conf b/data/conf/nginx/includes/site-defaults.conf index 2d74ad56..56c664b7 100644 --- a/data/conf/nginx/includes/site-defaults.conf +++ b/data/conf/nginx/includes/site-defaults.conf @@ -166,10 +166,6 @@ client_max_body_size 0; } - location ~ /(?:S|s)ogo$ { - return 301 $client_req_scheme://$http_host/SOGo; - } - location ^~ /SOGo { include /etc/nginx/conf.d/sogo_proxy_auth.active; include /etc/nginx/conf.d/sogo.active; @@ -186,6 +182,10 @@ break; } + location ~* /sogo$ { + return 301 $client_req_scheme://$http_host/SOGo; + } + location /SOGo.woa/WebServerResources/ { alias /usr/lib/GNUstep/SOGo/WebServerResources/; }