trying to make two domains behave identically

Reply

Join Date: Mar 2009
Posts: 3
Reputation: yawnmoth is an unknown quantity at this point 
Solved Threads: 0
yawnmoth yawnmoth is offline Offline
Newbie Poster

trying to make two domains behave identically

 
0
  #1
Mar 15th, 2009
http://www.texasladiesaside.org
http://www.texasladiesaside.com

Clicking on the former loads a webpage - clicking on the latter does not. My question is... why?

Per this tool, they both have the same A records - 209.189.226.66.

Also, both are valid Virtual Hosts as the following demonstrates:

<?php
$fsock = fsockopen('www.texasladiesaside.org', 80);

fputs($fsock, "GET / HTTP/1.1\r\n");
fputs($fsock, "Host: www.texasladiesaside.com\r\n\r\n");

while (!feof($fsock))
{
	echo fgets($fsock, 1024);
}
So my question is... why isn't www.texasladiesaside.com showing me the same thing as www.texasladiesaside.org?
Reply With Quote Quick reply to this message  
Join Date: Jan 2007
Posts: 1,765
Reputation: DimaYasny will become famous soon enough DimaYasny will become famous soon enough 
Solved Threads: 85
Moderator
Featured Poster
DimaYasny DimaYasny is offline Offline
Posting Virtuoso

Re: trying to make two domains behave identically

 
0
  #2
Mar 15th, 2009
virtual hosts are in httpd.conf, do you have that properly set up?
Real stupidity always beats Artificial Intelligence. (Terry Pratchett)

BA BizMg, MCSE, DCSE, Linux+, Network+
Reply With Quote Quick reply to this message  
Join Date: Mar 2009
Posts: 3
Reputation: yawnmoth is an unknown quantity at this point 
Solved Threads: 0
yawnmoth yawnmoth is offline Offline
Newbie Poster

Re: trying to make two domains behave identically

 
0
  #3
Mar 15th, 2009
Yes - that was the reason I included the PHP code - to demonstrate that the virtual hosts are correctly setup. If you change the .com domain in the script to digg.com, it won't work as no virtual hosts have been setup for digg.com.
Reply With Quote Quick reply to this message  
Join Date: Jan 2007
Posts: 1,765
Reputation: DimaYasny will become famous soon enough DimaYasny will become famous soon enough 
Solved Threads: 85
Moderator
Featured Poster
DimaYasny DimaYasny is offline Offline
Posting Virtuoso

Re: trying to make two domains behave identically

 
0
  #4
Mar 16th, 2009
well, there are two ways to do that - either place the site in the default root virtual host (bad idea) or set up two different v-hosts for the two domains, pointing to the same place in the filesystem

oh, another way is to use mod_rewrite to redirect one of the domains to the other
Real stupidity always beats Artificial Intelligence. (Terry Pratchett)

BA BizMg, MCSE, DCSE, Linux+, Network+
Reply With Quote Quick reply to this message  
Join Date: Mar 2009
Posts: 3
Reputation: yawnmoth is an unknown quantity at this point 
Solved Threads: 0
yawnmoth yawnmoth is offline Offline
Newbie Poster

Re: trying to make two domains behave identically

 
0
  #5
Mar 16th, 2009
mod_rewrite would require I have two accounts (one for each website) instead of just one.

Regardless, the issue has been resolved.
Reply With Quote Quick reply to this message  
Reply

This thread is more than three months old.
Perhaps start a new thread instead?
Message:



Other Threads in the Domains and DNS Forum
Thread Tools Search this Thread



About Us | Contact Us | Advertise | DaniWeb | Acceptable Use Policy | RSS Feed

©2003 - 2009 DaniWeb® LLC