NameVirtualHost *:80 UseCanonicalName off ServerName *.{domain} ServerAdmin webmaster@{domain} DocumentRoot "/data/htdocs/{domain}/%-3+/" AllowOverride All ServerName {domain} ServerAdmin webmaster@{domain} DocumentRoot "/data/htdocs/{domain}" AllowOverride All