Roundcube and phpmyadmin with https

Need to put roundcube and phpmyadmin settings to force work only with secure https?

/etc/roundcube/config.inc.php
$rcmail_config[‘force_https’] = true;

/etc/phpmyadmin/config.inc.php
$cfg[‘ForceSSL’] = true;

If your host and mail subdomains have LE cert yet, you would have encrypted connection for:

https://host.domain.tld/phpmyadmin/

and

https://webmail.domain.tld/

1 Like

Exactly what @Wibol wrote, in addition, if ssl is enabled - an auto redirect for webmail is already set.