How to force Roundcube connecting HTTPS?

Discussion in 'Installation/Configuration' started by concept21, Oct 3, 2017.

  1. concept21

    concept21 Active Member

    My question is simple. How do we force Roundcube web mail to connect with HTTPS only
    https://example.com/webmail/
    but let this stay as HTTP?
    http://example.com

    My idea is that http may be faster than https. We only use it for secure authentication. :rolleyes:
     
  2. HSorgYves

    HSorgYves Active Member HowtoForge Supporter

    Of course HTTPS needs to encrypt the data, but if your data is dynamic, than rendering it takes more time than encrypting so that there is not much of speed difference. Then the only difference is the TLS handshake. But this depends of course of multiple factors, mainly hardware. Why don't you test the speed impact?
    P.S.: If you want to stick with a HTTPS webmail only, why not use webmail.example.com?
     
    concept21 likes this.
  3. concept21

    concept21 Active Member


    Thank for your opinion. :)
    I have not yet configured any subdomain successfully. My configuration always redirects visitors to the wrong subdirectory :D Could you provide any material or guide to me?
     
  4. HSorgYves

    HSorgYves Active Member HowtoForge Supporter

    Alternative can also be to make roundcube only available on your mail page using SSL and redirect all others there.
     
  5. ztk.me

    ztk.me Well-Known Member HowtoForge Supporter

    you could implement roundcube like described here
    https://www.howtoforge.com/communit...-enigma-munin-phpmyadmin-using-php-fpm.77489/
    and add
    Code:
    RewriteEngine On
    RewriteCond %{SERVER_PORT} 80
    RewriteCond %{REQUEST_URI} folder
    RewriteRule ^(.*)$ https://www.example.com/folder/$1 [R,L]
    
    to your apache directives


    uhm there might be a redirect assistent in website configuration which may be just clicking some buttons, honestly... never played with those so some ISP-experts might assist with that if you can't figure them out :) just hinting, there are other possibilities to achieve that

    edit: updated rewrite-rule
     

Share This Page