I am a pretty green linux guy but am really stumped on a virtual hosts issue. I have scoured the forums looking for an answer with no luck.
I have 2 domains, delicatefade.net and mikemcbrien.com pointing to the same debian apache2. For the life of me i cannot get mikemcbrien.com to resolve.
lslookup point to my ip (172.230.136.117) for all domains (a sub domain for mikemcbrien.com included) So that indicates teh DNS is correct, so I looked into the host file. I have a2dissite & a2ensite & reloaded apache, even tried disabling delicatefade.net and only enabling mikemcbrien.com and still no luck. The only site I can get to work is the delicatefade.net site.
//apache2ctl -S //
Code:
VirtualHost configuration:
wildcard NameVirtualHosts and _default_ servers:
*:80 is a NameVirtualHost
default server delicatefade.net (/etc/apache2/sites-enabled/delicatefade.net:1)
port 80 namevhost delicatefade.net (/etc/apache2/sites-enabled/delicatefade.net:1)
port 80 namevhost mikemcbrien.com (/etc/apache2/sites-enabled/lhcf.mikemcbrien.com:1)
Syntax OK
//checking for multiple namevirtual host entries///
Code:
root@li176-117:~# grep -rli "namevirtualhost" *
ssinclude-1
I have attempted setting the * in my virtual hosts file as my linodes IP (172.23.136.117) however that did not work and here is my current virtual hosts files...
//mikemcbrien.com virtual hosts file found in the site-available folder //
Code:
<VirtualHost *:80>
ServerName mikemcbrien.com
DocumentRoot /srv/www/mikemcbrien.com/public_html/
ErrorLog /srv/www/mikemcbrien.com/logs/error.log
CustomLog /srv/www/mikemcbrien.com/logs/access.log combined
</VirtualHost>
//delicatefade.net virtual hosts file found in sites available folder //
Code:
<VirtualHost *:80>
ServerName delicatefade.net
DocumentRoot /srv/www/delicatefade.net/public_html/
ErrorLog /srv/www/delicatefade.net/logs/error.log
CustomLog /srv/www/delicatefade.net/logs/access.log combined
</VirtualHost>
Any help or direction would be greatly appreciated, i have spent four hours trying to get it working oi.
Thanks.