View Single Post
  #2 (permalink)  
Old 04-25-2008, 06:35 AM
speed speed is offline
WebProWorld Veteran
 

Join Date: Aug 2003
Location: Cornwall, UK
Posts: 824
speed RepRank 1
Default Re: Sub domains at the speed of light?

First you need to setup a wildcard for the domain in the DNS records e.g.
Code:
*.example.com.      IN  A    1.2.3.4
Second you need to edit httpd.conf to set the ServerName to the same wildcard, e.g.
Code:
<VirtualHost 1.2.3.4>
ServerName www.example.com
ServerAlias *.example.com
....
</VirtualHost>
__________________
TOLRA Micro Systems Limited US & UK Web Hosting with Continuous Data Protection
Web Directory : Web Directory Script
Reply With Quote