1

Topic: All domains redirecting to just one domain

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

Hi,

I setup VirtualHost on iRedMail server but it's not working working properly. Can anyone guide me in this?
I setup 2 domains for example, example1.com and example2.com

on config file i entered this

NameVirtualHost 192.168.0.100:80

<VirtualHost 192.168.0.100:80>
    ServerAdmin webmaster@example1.com
    DocumentRoot /var/www/html/example1.com
    ServerName www.example1.com
ErrorLog logs/www.example1.com-error_log
CustomLog logs/www.example1.com-access_log common
</VirtualHost>

<VirtualHost 192.168.0.100:80>
    ServerAdmin webmaster@example2.com
    DocumentRoot /var/www/html/example2.com
    ServerName www.example2.com
ErrorLog logs/www.example2.com-error_log
CustomLog logs/www.example2.com-access_log common
</VirtualHost>

Can anyone tell me why my second domain redirecting to the 1st domain?

Thanks.

----

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

2

Re: All domains redirecting to just one domain

Your config looks fine. Any error message during restarting Apache service? Also, any error message in Apache log file if you set 'LogLevel debug' in Apache (when access your virtual domain)?