Thread: DNS Wildcard?
View Single Post
  #8 (permalink)  
Old 02-19-2008, 04:35 AM
internetfab internetfab is offline
Registered User
 
Join Date: Feb 2003
Location: Gothenburg, Sweden
Posts: 310
internetfab
Quick Wildcard Setup for One virtualhost


Code:
mkdir -p /usr/local/apache/conf/userdata/std/2/<username>/<domainname>/
echo "ServerAlias *.<domainname>" >> /usr/local/apache/conf/userdata/std/2/<username>/<domainname>/wildcard.conf
/scripts/ensure_vhost_includes --user=<username>
/scripts/restartsrv httpd

replace <username> and <domainname> with the username and domain of the customer/domain.

Don't forget to add the wildcard entry in the zonefile for the domain
* IN CNAME domainname.com.
__________________
Reply With Quote