Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

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.

Setup: Ubuntu 12.10 with Apache2.

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

    <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 *:443>
            ServerName example.com:443
            SSLEngine on
            SSLCertificateFile /etc/apache2/ssl/www.example.com.crt
            SSLCertificateKeyFile /etc/apache2/ssl/www.example.com.key

Any ideas where the problem is?



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

    NameVirtualHost *:80
    NameVirtualHost *:443
    Listen 80

    <IfModule mod_ssl.c>
        Listen 443

    <IfModule mod_gnutls.c>
        Listen 443
share|improve this question
Do you have any error / Is there any "Listen 443" or "NameVirtualHost *:443" in your conf file ? –  RelevantUsername Apr 22 '13 at 20:24
Thanks for your message. There are no errors - all requests are just redirected to /mail and SSL is working fine. Yes, there are such commands - I updated the answer. –  Ivanhoe123 Apr 22 '13 at 20:29
That could be better. I added my vote as well now. –  Ivanhoe123 Apr 23 '13 at 11:22
add comment

migrated from stackoverflow.com Apr 24 '13 at 1:18

This question came from our site for professional and enthusiast programmers.

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Browse other questions tagged or ask your own question.