This commit is contained in:
Zhang Huangbin 2019-03-09 22:27:23 +08:00
parent 60bc2f8a63
commit 95285b34b9
4 changed files with 24 additions and 8 deletions

View File

@ -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.

View File

@ -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

View File

@ -279,10 +279,10 @@ ProxyPass /SOGo http://127.0.0.1:20000/SOGo retry=0
</code></pre>
<ul>
<li>Append line below in <code>/etc/httpd/conf/httpd.conf</code> to make Apache always
redirect http access to https.</li>
<li>Append line below in <code>/etc/httpd/conf.d/SOGo.conf</code>, no matter upper or lower
case letters of <code>SOGo</code> in the url, Apache will always to https:</li>
</ul>
<pre><code>RewriteRule /SOGo(.*) https://%{HTTP_HOST}%{REQUEST_URI}
<pre><code>RedirectMatch ^/[Ss][Oo][Gg][Oo](.*) /SOGo$1
</code></pre>
<ul>

View File

@ -271,10 +271,19 @@ open it and find below lines:</p>
</code></pre>
<ul>
<li>Find string <code>yourhostname</code> in the same file, replace all <code>yourhostname</code> by
<li>
<p>Find string <code>yourhostname</code> in the same file, replace all <code>yourhostname</code> by
your FQDN server hostname. (Tip: you can get your FQDN hostname with command
<code>hostname -f</code>.)</li>
<code>hostname -f</code>.)</p>
</li>
<li>
<p>Append line below in <code>/etc/httpd/conf.d/SOGo.conf</code>, no matter upper or lower
case letters of <code>SOGo</code> in the url, Apache will always to https:</p>
</li>
</ul>
<pre><code>RedirectMatch ^/[Ss][Oo][Gg][Oo](.*) /SOGo$1
</code></pre>
<h3 id="nginx-web-server">Nginx web server</h3>
<p>If you're running Nginx web server configured by iRedMail, please open file
<code>/etc/nginx/conf.d/default.conf</code>, add some lines in <code>server {}</code> configured for