[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [cobalt-users] RaQ4r Unwanted redirecting of domains
- Subject: Re: [cobalt-users] RaQ4r Unwanted redirecting of domains
- From: Elmer Fuddpucker <elmer@xxxxxxxxxxxxxx>
- Date: Tue Jun 12 00:39:05 2001
- List-id: Mailing list for users to share thoughts on Cobalt products. <cobalt-users.list.cobalt.com>
On Tue, 12 Jun 2001, Hans Hoefer wrote:
} What makes this vsite grabbing all domainnames from the DNS and
} redirecting them to itself?
}
} This is a nice feature but how can I gain control over it.
Hi Hans,
This is the way name based hosting works. If you don't have
sites setup for the zones or the sites are incorrectly configured
then pointing a browser at the applicable domain will result in a
redirect to the first site using the same IP address.
What we did here was to set up the first site on the IP
address we use for this kind of thing with a dynamically generated
page that "customizes" itself for the domain being called by simply
grabbing the host headers. You can see it in action by clicking on
the following two links, both of which are served by one vhost:
http://www.efeaturesyndicate.com/
http://parking.webokay.com/
If you have PHP running on the server you can download the
page which does this at: ftp://ftp.webokay.com/pub/ the file is
named park_domain.php.txt - it's just a really simple hack that can
easily be customized. I'm sure you can find something similar which
was written in Perl if you root around somewhere like
http://cgi-resources.com/
brent
http://www.warbirdcentral.com/