If you get this error message while restarting apache:
Starting httpd: [warn] _default_ VirtualHost overlap on port 80, the first has precedence
You can edit and set: /etc/httpd/conf/httpd.conf NameVirtualHost to:
NameVirtualHost *:80
This fix will resolve an issue (if any) with all domains opening same website.
Sample configuration:
# My Virtual Hosts Config File for Two Domains
NameVirtualHost *:80
<VirtualHost *:80>
ServerAdmin webmaster@theos.in
DocumentRoot "/usr/local/docs/theos.in"
ServerName www.theos.in
ServerAlias theos.in
ErrorLog "/var/log/theos.in-error_log"
CustomLog "/var/log/theos.in-access_log" common
</VirtualHost>
<VirtualHost *:80>
ServerAdmin webmaster@nixcraft.com
DocumentRoot "/usr/local/docs/nixcraft.com"
ServerName www.nixcraft.com
ServerAlias nixcraft.com
ErrorLog "/var/log/nixcraft.com-error_log"
CustomLog "/var/log/nixcraft.com-access_log" common
</VirtualHost>