Get your server issues fixed by our experts for a price starting at just 25 USD/Hour. Click here to register and open a ticket with us now!

Author Topic: Force HTTPS for the Plesk webmail (Horde)  (Read 3338 times)

0 Members and 1 Guest are viewing this topic.

Vinil

  • Guest
Force HTTPS for the Plesk webmail (Horde)
« on: November 22, 2013, 04:48:03 pm »
If your using Horde as your preferred webmail client on a Plesk virtual hosting server, its advisable to enable the use of HTTPS in order to secure webmail users against their login information and email communication being compromised.

To force HTTPS within Horde:

Code: [Select]
# vi   /etc/psa-webmail/horde/horde/conf.php
Then change:

Quote
    $conf['use_ssl'] = 2;

to:

    $conf['use_ssl'] = 1;


Next edit the Horde virtual host file:

Code: [Select]
vi  /etc/httpd/conf.d/zzz_horde_vhost.conf

And the following just below the "ServerAdmin email@address.com" line :


Quote
RewriteEngine On
RewriteCond %{HTTPS} off
RewriteRule (.*) https://%{HTTP_HOST}%{REQUEST_URI}


Make sure to tab the lines in to match the delimiter of the previous servername/alias/admin lines.

Now restart Apache so it can pickup the changes:

# /etc/init.d/httpd restart



Now the connections should be re-directed from http://webmail.your-domain.com to https://webmail.your-domain.com .