Browse Source

[Nginx] Redirect /S|sogo* to /SOGo

andryyy 5 năm trước cách đây
mục cha
commit
ce15dda990
1 tập tin đã thay đổi với 4 bổ sung0 xóa
  1. 4 0
      data/conf/nginx/includes/site-defaults.conf

+ 4 - 0
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;