roxen.lists.roxen.general

Subject Author Date
Re: Disabling the server's IP... Jeff Justice <listaccount[at]starionline[dot]com> 09-03-2006
Okay, this then brings up another question/issue:

In our DNS, we have all of our hosted domains set up like:

domain.com     111.111.111.111
www.domain.com 111.111.111.111

so that if someone forgets to type the www, it still goes to the  
right IP.  On our current production server, this works fine.  With  
or without the "www" gets it to the right page.

In Roxen, however,

I have two sites set up: domainA, and domainB.

When I type in www.domainA.com I get the page for domain A.
When I type in domainA.com I get the page for domain A.

When I type in www.domainB.com I get the page for domain B.
However, when I type in domainB.com I get the page domain A.

I'm getting really confused now.  I don't understand this behavior.

Jeff J.


On Mar 8, 2006, at 10:15 PM, Dan Nelson wrote:

> In the last episode (Mar 08), Jeff Justice said:
>> Okay, after a fair amount of trial and error, I think I have the
>> virtual hosts working.
>>
>> However, when I type in my server's IP address, I get the first
>> virtual host site.
>>
>> Is there a way to disallow someone from typing in the IP address of
>> our server and getting one of our virtually hosted sites, or at least
>> give them a page we WANT them to see?
>
> Pick one site (or set up another one) and set it as the default (Sites
> -> sitename -> Settings -> Default site).  That'll be used if no
> hostnames match any other sites.  Setting up a port of http://* should
> probably do that same thing.
>
> -- 
> 	Dan Nelson
> 	<dnelson[at]allantgroup.com>
>
>