Home » Articles » Forcing SSL on Roundcube and Horde under Plesk

Forcing SSL on Roundcube and Horde under Plesk

Horde

Using your favorite editor open this file:

/usr/share/psa-horde/config/conf.php

Possible values:

0 – Assume that we are not using SSL and never generate https URLS.

1 – Assume that we are using SSL and always generate https URLS.

NOTE: If you do this, you MUST hardcode the correct HTTPS port number in $conf[‘server’][‘port’] below. Otherwise Horde will be unable to generate correct HTTPS URLs when a user tries to access Horde  via a non-HTTPS port.

2 – Attempt to auto-detect, and generate URLs appropriately.

Change the line to resemble this:

$conf['use_ssl'] = 1;

Save the file and visit a horde webmail interface on your server to verify.

Roundcube

Using your favorite editor open this file:

/usr/share/psa-roundcube/config/defaults.inc.php

 

Change the line containing ‘force_https to resemble this:

$config['force_https'] = true;

 

Save the file and visit a Roundcube webmail interface on your server to verify.

About Brian Aldridge

I am a software developer and podcaster. Catch me weekly on Infection - The Survival Podcast at https://infectionpodcast.com

Check Also

Securing webmail in Plesk w/Let’s Encrypt

Let’s Encrypt is a great free option for securing your websites with an SSL certificate. Plesk Control Panel allows you to secure your control panel, websites, and webmail interface with the latest version of their Let’s Encrypt extension.