1

Topic: non 'www' url forwarding to https://domain.com/mail

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

Hi there, hopefully someone can help point me in the right direction.
I am hosting a number of domains using virtual hosts all under one server with the hostname "example1.com"
If I visit http://www.example1.com the site is fine, but if I go to http://example1.com it is automatically forwarded to https://example1.com/mail

(Other domains on the server don't do this)

I have checked that it is not something I have done in either the Apache2 virtual hosts file for example1.com or in the .htaccess file or with DNS (namecheap) so I'm assuming/hoping/guessing that there's another file somewhere else that is causing this to happen and that someone might be able to shed some light on the issue.

Other places I have checked (at a guess):
/etc/apache2/sites-available/default
/etc/apache2/sites-available/default-ssl
/etc/apache2/apache2.conf

Thank you!

----

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

2

Re: non 'www' url forwarding to https://domain.com/mail

Did you check file /var/www/index.html?

3

Re: non 'www' url forwarding to https://domain.com/mail

ZhangHuangbin wrote:

Did you check file /var/www/index.html?

Couldn't see the wood for the trees. That's done it, sorry about that and thank you!

4

Re: non 'www' url forwarding to https://domain.com/mail

Hi Zhang
Over 8000 users on my  remote ldap servers.
I find a solution: i will keep one server mail for both domains.