0

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?

2
Contributors
4
Replies
5
Views
8 Years
Discussion Span
Last Post by yawnmoth
0

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.

0

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

0

mod_rewrite would require I have two accounts (one for each website) instead of just one.

Regardless, the issue has been resolved.

This topic has been dead for over six months. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.