ServerName www.secure-example.com ServerAlias www ServerAdmin webmaster@secure-example.com DocumentRoot /home/admin/public_websites/www.secure-example.com/ Include /etc/apache2/conf.d/local-log-vhosts.conf CustomLog "| /usr/sbin/vlogger -s access.log -u admin -g admin -t '%Y.%m.%d' /home/admin/weblogs" combined_vlogger ErrorLog "| /usr/sbin/vlogger -s error.log -u admin -g admin -t '%Y.%m.%d' -e /home/admin/weblogs/ERRORS" ServerName secure-example.com ServerAlias *.www.secure-example.com ServerAdmin webmaster@secure-example.com RewriteEngine On RewriteRule / http://www.secure-example.com/ [R] # RewriteRule /(.*) http://www.secure-example.com/$1 [R] TransferLog /dev/null