Web Hosting Talk







View Full Version : Wild Card dns


tymonhall
09-21-2001, 11:11 AM
Do anyone know how to setup an raq to accept anything.yourdomain.com and have it point to yourdomain.com?

jks
09-21-2001, 04:33 PM
Originally posted by tymonhall
Do anyone know how to setup an raq to accept anything.yourdomain.com and have it point to yourdomain.com?

You need to first add a wild card record for the domain to DNS (i.e. using * as the hostname).

Then you need to edit the /etc/httpd/conf/httpd.conf file and edit the Rewrite block of the Virtual block specific to the domain in question.

If the site has it's own IP address, you don't need to edit the httpd.conf file -- you'll only have to add the wild card record to DNS.