Roundcube Community Forum

Release Support => Release Discussion => Topic started by: batricbatric on April 23, 2013, 10:44:39 AM

Title: RoundCube redirects all SSL requests of a domain to login page
Post by: batricbatric on April 23, 2013, 10:44:39 AM
Hello,

iRedMail with RoundCube is installed according to this tutorial:
https://www.digitalocean.com/community/articles/how-to-install-iredmail-on-ubuntu-12-10-x64

All requests to https://example.com end up being redirected to RoundCube login page.

I want https to work the same way as regular protocol does, and to use the same URLs. Also, the RoundCube is using another domain as the main one (let's call it example2.com).

Here is the content of /etc/apache2/sites-available/example.com file:

    <VirtualHost *:80>
            ServerAdmin [email protected]
            ServerName example.com
            ServerAlias www.example.com
            DocumentRoot /var/www/example.com/public_html/
            ErrorLog /var/www/example.com/logs/error.log
            CustomLog /var/www/example.com/logs/access.log combined
    </VirtualHost>
    <VirtualHost *:443>
            ServerName example.com:443
            SSLEngine on
            SSLCertificateFile /etc/apache2/ssl/www.example.com.crt
            SSLCertificateKeyFile /etc/apache2/ssl/www.example.com.key
    </VirtualHost>


Here's the content of /etc/apache2/ports.conf file:

    NameVirtualHost *:80
    NameVirtualHost *:443
    Listen 80

    <IfModule mod_ssl.c>
        Listen 443
    </IfModule>

    <IfModule mod_gnutls.c>
        Listen 443
    </IfModule>


Setup: Ubuntu 12.10 with Apache2.

Any ideas where is the issue exactly?

Thanks!