Topic: All https requests of other domains are redirected to /mail
Hello,
iRedMail is installed according to this tutorial:
https://www.digitalocean.com/community/ … -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@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:
NameVirtualHost *:80
NameVirtualHost *:443
Listen 80
<IfModule mod_ssl.c>
Listen 443
</IfModule>
<IfModule mod_gnutls.c>
Listen 443
</IfModule>
==== Required information ====
- iRedMail version: 0.8.3
- Store mail accounts in which backend (LDAP/MySQL/PGSQL): MySQL
- Linux/BSD distribution name and version: Ubuntu 12.10 server, Apache2
====
----
Spider Email Archiver: On-Premises, lightweight email archiving software developed by iRedMail team. Supports Amazon S3 compatible storage and custom branding.