Linode Forum
Linode Community Forums
 FAQFAQ    SearchSearch    MembersMembers      Register Register 
 LoginLogin [ Anonymous ] 
Post new topic  Reply to topic
Author Message
 Post subject: Virtual Hosts Issue
PostPosted: Mon Oct 03, 2011 1:54 am 
Offline
Newbie

Joined: Mon Oct 03, 2011 1:43 am
Posts: 4
Location: United States
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.


Top
   
 Post subject:
PostPosted: Mon Oct 03, 2011 6:49 am 
Offline
Senior Member

Joined: Mon Dec 20, 2010 11:37 pm
Posts: 76
I think it's a network problem (not yours). I can ping delicatefade.net but not to mikemcbrien.com, even they are resolved to same IP.

From my London Linode:

traceroute delicatefade.net:
Code:
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:
Code:
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.


Top
   
 Post subject:
PostPosted: Mon Oct 03, 2011 7:58 am 
Offline
Senior Member
User avatar

Joined: Sat Aug 30, 2008 1:55 pm
Posts: 1739
Location: Rochester, New York
They are pointing to two different IPs:

Code:
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.*.

_________________
Code:
/* TODO: need to add signature to posts */


Top
   
 Post subject:
PostPosted: Mon Oct 03, 2011 8:08 am 
Offline
Newbie

Joined: Mon Oct 03, 2011 1:43 am
Posts: 4
Location: United States
hoopycat wrote:
They are pointing to two different IPs:

Code:
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.


Top
   
 Post subject:
PostPosted: Mon Oct 03, 2011 10:40 am 
Offline
Newbie

Joined: Mon Oct 03, 2011 1:43 am
Posts: 4
Location: United States
That was it, thanks again for pointing out my typo.


Top
   
 Post subject:
PostPosted: Mon Oct 03, 2011 11:19 am 
Offline
Senior Member

Joined: Mon Dec 20, 2010 11:37 pm
Posts: 76
hoopycat wrote:
They are pointing to two different IPs:

Code:
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 @_@


Top
   
 Post subject:
PostPosted: Mon Oct 03, 2011 11:20 am 
Offline
Newbie

Joined: Mon Oct 03, 2011 1:43 am
Posts: 4
Location: United States
drpks wrote:
hoopycat wrote:
They are pointing to two different IPs:

Code:
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)


Top
   
 Post subject:
PostPosted: Mon Oct 03, 2011 5:55 pm 
Offline
Senior Member
User avatar

Joined: Sat Aug 30, 2008 1:55 pm
Posts: 1739
Location: Rochester, New York
Thank you for posting enough information to figure it out. :-) I've been there more times than I care to admit...


Top
   
Display posts from previous:  Sort by  
Post new topic  Reply to topic


Who is online

Users browsing this forum: No registered users and 2 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
Jump to:  
RSS

Powered by phpBB® Forum Software © phpBB Group