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
/etc/httpd/conf/httpd.conf
to make Apache always
- redirect http access to https./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
diff --git a/html/sogo-centos-6-openldap.html b/html/sogo-centos-6-openldap.html
index 627f08ab..8806ad75 100644
--- a/html/sogo-centos-6-openldap.html
+++ b/html/sogo-centos-6-openldap.html
@@ -271,10 +271,19 @@ open it and find below lines:
yourhostname
in the same file, replace all yourhostname
by
+Find string yourhostname
in the same file, replace all yourhostname
by
your FQDN server hostname. (Tip: you can get your FQDN hostname with command
-hostname -f
.)
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
+
+
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