Author Topic: RoundCube redirects all SSL requests of a domain to login page  (Read 4864 times)

Offline batricbatric

  • Newbie
  • *
  • Posts: 1
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:

Code: [Select]
    <VirtualHost *:80>
            ServerAdmin email@address.com
            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:

Code: [Select]
    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!