From 95285b34b95b9af6410ec5bbb993e847f60e8ffd Mon Sep 17 00:00:00 2001 From: Zhang Huangbin Date: Sat, 9 Mar 2019 22:27:23 +0800 Subject: [PATCH] Typo --- en_US/integrations/0-sogo-centos-6-mysql.md | 6 +++--- en_US/integrations/0-sogo-centos-6-openldap.md | 7 +++++++ html/sogo-centos-6-mysql.html | 6 +++--- html/sogo-centos-6-openldap.html | 13 +++++++++++-- 4 files changed, 24 insertions(+), 8 deletions(-) diff --git a/en_US/integrations/0-sogo-centos-6-mysql.md b/en_US/integrations/0-sogo-centos-6-mysql.md index 6f3e60a3..b01ff3c4 100644 --- a/en_US/integrations/0-sogo-centos-6-mysql.md +++ b/en_US/integrations/0-sogo-centos-6-mysql.md @@ -256,11 +256,11 @@ Replace them by below settings: RequestHeader set "x-webobjects-server-url" "https://%{HTTP_HOST}e" env=HTTP_HOST ``` -* Append line below in `/etc/httpd/conf/httpd.conf` to make Apache always - redirect http access to https. +* Append line below in `/etc/httpd/conf.d/SOGo.conf`, no matter upper or lower + case letters of `SOGo` in the url, Apache will always to https: ``` -RewriteRule /SOGo(.*) https://%{HTTP_HOST}%{REQUEST_URI} +RedirectMatch ^/[Ss][Oo][Gg][Oo](.*) /SOGo$1 ``` * Restart Apache service. diff --git a/en_US/integrations/0-sogo-centos-6-openldap.md b/en_US/integrations/0-sogo-centos-6-openldap.md index 08cf2d76..37ff3e2b 100644 --- a/en_US/integrations/0-sogo-centos-6-openldap.md +++ b/en_US/integrations/0-sogo-centos-6-openldap.md @@ -254,6 +254,13 @@ ProxyPass /Microsoft-Server-ActiveSync \ your FQDN server hostname. (Tip: you can get your FQDN hostname with command `hostname -f`.) +* Append line below in `/etc/httpd/conf.d/SOGo.conf`, no matter upper or lower + case letters of `SOGo` in the url, Apache will always to https: + +``` +RedirectMatch ^/[Ss][Oo][Gg][Oo](.*) /SOGo$1 +``` + ### Nginx web server If you're running Nginx web server configured by iRedMail, please open file diff --git a/html/sogo-centos-6-mysql.html b/html/sogo-centos-6-mysql.html index 2c42c4e8..486b1772 100644 --- a/html/sogo-centos-6-mysql.html +++ b/html/sogo-centos-6-mysql.html @@ -279,10 +279,10 @@ ProxyPass /SOGo http://127.0.0.1:20000/SOGo retry=0 -
RewriteRule /SOGo(.*) https://%{HTTP_HOST}%{REQUEST_URI}
+
RedirectMatch ^/[Ss][Oo][Gg][Oo](.*) /SOGo$1
 
+
RedirectMatch ^/[Ss][Oo][Gg][Oo](.*) /SOGo$1
+
+

Nginx web server

If you're running Nginx web server configured by iRedMail, please open file /etc/nginx/conf.d/default.conf, add some lines in server {} configured for