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