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.