[TriLUG] Name-Based Virtual Hosting vs. GoDaddy, round 1

Jon Carnes jonc at nc.rr.com
Fri Oct 1 10:11:54 EDT 2004


On Fri, 2004-10-01 at 09:45, Brian Henning wrote:
> Hi Folks,
>   I'm trying to do some name-based virtual hosting for a non-profit org.
> They are using GoDaddy to provide their DNS resolution.  GoDaddy appears to
> use a redirector rather than actual pure DNS (I'm vague on what the proper
> technical terms are in this situation.  What I mean is, the DNS for the
> NPO's domain name still points to a GoDaddy server, which then redirects the
> UA to my host, presumably by a http header with the target IP address).
>   The problem is, by the time the request makes it to my server, it's just
> "GET /" instead of "GET http://fully-qualified-url.org/" .  I've discovered
> this by tail -f 'ing access_log and watching what happens when I try to surf
> to the site.  I think this is because once GoDaddy redirects the UA, the UA
> is using the IP itself instead of the domain name in its request, which
> confuses (or rather, fools) my name-based host into serving up the default
> /, which is a completely unrelated commercial site.

That being the case, you need to setup another (real) IP on that server
and have the non-profit site use that IP address - while your other
sites use only your original IP.

Alternately, you could just start doing DNS for the non-profit as well
as web.  DNS is dirt-cheap to buy and very easy to setup/maintain.

Jon




More information about the TriLUG mailing list