LogFormat "%V %h %l %u %t \"%r\" %>s %b \"%{Referer}i\" \"%{User-Agent}i\"" vcombined
<VirtualHost *:80> ServerAlias example.com www.example.com VirtualDocumentRoot /var/www/example CustomLog logs/exampl-access_log vcombined ErrorLog logs/example-error_log </VirtualHost>
<VirtualHost *:80> ServerAlias *.example.com VirtualDocumentRoot /var/www/sites/%1 CustomLog logs/sites-access_log vcombined ErrorLog logs/sites-error_log </VirtualHost>
<VirtualHost *:80> ServerAlias * VirtualDocumentRoot /var/www/domains/%0 CustomLog logs/domains-access_log vcombined ErrorLog logs/domains-error_log </VirtualHost>