Virtual Hosts Issue
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 //
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///
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 //
<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 //
<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.
7 Replies
From my London Linode:
traceroute delicatefade.net:
traceroute to delicatefade.net (173.230.136.117), 30 hops max, 60 byte packets
1 212.111.33.229 (212.111.33.229) 0.601 ms 0.635 ms 0.650 ms
2 212.111.33.233 (212.111.33.233) 0.499 ms 0.534 ms 0.551 ms
3 te3-1-border76-01.lon2.telecity.net (217.20.44.217) 0.724 ms * *
4 * * *
5 85.90.238.42 (85.90.238.42) 0.968 ms * *
6 ldn-b2-link.telia.net (213.248.100.17) 0.651 ms 0.625 ms 0.600 ms
7 ldn-bb2-link.telia.net (80.91.250.229) 0.690 ms 0.673 ms 0.707 ms
8 ash-bb1-link.telia.net (80.91.251.209) 76.495 ms 76.518 ms 76.501 ms
9 atl-bb1-link.telia.net (80.91.247.173) 90.088 ms 90.091 ms 90.081 ms
10 globalnet-127291-atl-bb1.c.telia.net (213.248.90.54) 91.019 ms 91.061 ms 91.124 ms
11 64.22.106.10 (64.22.106.10) 92.706 ms 92.719 ms 92.716 ms
12 173.230.136.117 (173.230.136.117) 91.033 ms 91.026 ms 90.968 ms
traceroute mikemcbrien.com:
traceroute to mikemcbrien.com (172.230.136.117), 30 hops max, 60 byte packets
1 212.111.33.229 (212.111.33.229) 0.597 ms 0.635 ms 0.589 ms
2 212.111.33.233 (212.111.33.233) 0.488 ms 0.497 ms 0.516 ms
3 * * *
4 85.90.238.45 (85.90.238.45) 2.194 ms * *
5 195.50.113.1 (195.50.113.1) 0.747 ms !N 0.780 ms !N 0.763 ms !N
I don't know why this happen, but forget vhosts by now.
delicatefade.net. 86400 IN A 173.230.136.117
mikemcbrien.com. 86400 IN A 172.230.136.117
I suspect you want for both of them to be 173.*.
@hoopycat:
They are pointing to two different IPs:
delicatefade.net. 86400 IN A 173.230.136.117 mikemcbrien.com. 86400 IN A 172.230.136.117
I suspect you want for both of them to be 173.*.
Oh wow, Thats a pretty bad mistake, I updated my dns and will let you know if that was indeed it once it resolves.
/me is embarressed.
@hoopycat:
They are pointing to two different IPs:
delicatefade.net. 86400 IN A 173.230.136.117 mikemcbrien.com. 86400 IN A 172.230.136.117
I suspect you want for both of them to be 173.*.
Oh my… good catch! I read and re-read it and I didn't notice @_@
@drpks:
@hoopycat:They are pointing to two different IPs:
delicatefade.net. 86400 IN A 173.230.136.117 mikemcbrien.com. 86400 IN A 172.230.136.117
I suspect you want for both of them to be 173.*.
Oh my… good catch! I read and re-read it and I didn't notice @_@
That makes me feel better (cause I looked at that a few time too and missed it)