1

Topic: Add a website/virtual host port 80 - "http://www.example.com"

==== Required information ====
- iRedMail version:  iRedMail-0.9.0
- Store mail accounts in which backend (LDAP/MySQL/PGSQL): mySQL
- Linux/BSD distribution name and version: Ubuntu 14.04.2
- Related log if you're reporting an issue:
====

Hi,

I just installed and would like to know how to add a website/virtual host to port 80 to apache2 with the minimum changes. I want the website to come up with the "www.example.com". With the current/default iRedmail setup, "http://www.example.com" and "http://www.example.com/mail" goes to "https://www.example.com/mail". I think we should confiuire apache2 to go to https when we enter "http://www.example.com/mail".

Any help is much appriciated.

Mathew

----

Spider Email Archiver: On-Premises, lightweight email archiving software developed by iRedMail team. Supports Amazon S3 compatible storage and custom branding.

2

Re: Add a website/virtual host port 80 - "http://www.example.com"

# "http://www.example.com" and "http://www.example.com/mail" goes to "https://www.example.com/mail".

remove index.[html-php] located in /var/www or /var/www/html or replace it with ur index

# I think we should confiuire apache2 to go to https when we enter "http://www.example.com/mail".

You must edit : config.inc.php, In ur Ubuntu OS should be here : /var/www/roundcubemail-***/config/config.inc.php

In line 24 there is $config['force_https'] = True; [if True use https else False don't use https]

## This reported by mr. Zhang Huangbin in http://www.iredmail.org/forum/topic3459 … -http.html

3

Re: Add a website/virtual host port 80 - "http://www.example.com"

Hi deounix,

Thanks. I only have to replace the "index.html" file with my own one. The meta tag (<meta HTTP-EQUIV="REFRESH" content="0; url=/mail/">) in index.html created bu iredmial was redirecting to mail.

Regards,

mathew