View Full Version : How to set up wildcard domains?
h0ster
October 26th, 2006, 14:57
Hey. I'm starting a redirection service up or trying to. I have about 6 different sources all telling me different things. I would be very happy if someone could clearly explain this to me. I would most likely place an advert banner on the site belonging to the person (or persons) who help me out here.
The sites http://VH-1.info , it's far from finished but take a look if you want.
Cheers.
amz
November 4th, 2006, 15:38
We have wildcard DNS setup on accounts hosted at Cybertoad Networks and
it is it very easy to do if you are trying to set it up on your own server too.
You need to setup the wildcard in your DNS server and the Web server ...
For the DNS, edit the DNS zone file and add the following:
* IN A x.x.x.x
(where x.x.x.x is the IP for the hosting account using the wildcard)
Edit your httpd.conf config file for your web server and add a
server alias wildcard for the host you want to have wildcards:
ServerAlias *.mydomain.com
Restart both your DNS server and Web Server and you are ready!
The hosting account you modified will respond to any subdomain address
at the main domain for the account. Having a redirect service would just
be a simple matter of having a script check the $HTTP_HOST variable
to see what URL the visitor used to reach the site and then redirect to
whatever location or content you wish.
h0ster
November 14th, 2006, 05:24
Thanks, forgot I even posted this
Powered by vBulletin® Version 4.1.7 Copyright © 2012 vBulletin Solutions, Inc. All rights reserved.