瀏覽代碼

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

andryyy 5 年之前
父節點
當前提交
ce15dda990
共有 1 個文件被更改,包括 4 次插入0 次删除
  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;