From ce15dda9902819d04da34f3ef943b44f5eb39a5c Mon Sep 17 00:00:00 2001 From: andryyy Date: Thu, 28 Nov 2019 15:08:11 +0100 Subject: [PATCH] [Nginx] Redirect /S|sogo* to /SOGo --- data/conf/nginx/includes/site-defaults.conf | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/data/conf/nginx/includes/site-defaults.conf b/data/conf/nginx/includes/site-defaults.conf index 3de4c1a2..3d88c4ee 100644 --- a/data/conf/nginx/includes/site-defaults.conf +++ b/data/conf/nginx/includes/site-defaults.conf @@ -166,6 +166,10 @@ 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;