ServerName lists.example.com:443 ServerAlias lists ServerAdmin webmaster@example.com DocumentRoot /home/webmaster/public_websites/lists.example.com/ Include /etc/apache2/conf.d/local-ssl.conf Include /etc/apache2/conf.d/local-log-vhosts.conf Alias /pipermail /var/lib/mailman/archives/public Alias /images/mailman /usr/share/images/mailman ScriptAlias /mailman /usr/lib/cgi-bin/mailman RewriteEngine On RewriteRule ^/$ /mailman/listinfo [R] RewriteRule ^/mailman(/)?$ /mailman/listinfo [R] order deny,allow allow from all 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 www.lists.example.com:443 ServerAlias *.lists.example.com:443 ServerAdmin webmaster@example.com Include /etc/apache2/conf.d/local-ssl.conf Include /etc/apache2/conf.d/local-log-origin.conf RewriteEngine On RewriteRule / https://lists.example.com/ [R] # RewriteRule /(.*) https://lists.example.com/$1 [R] CustomLog /var/log/apache2/redirect.log origin ServerName lists.example.com ServerAlias *.lists.example.com ServerAdmin webmaster@example.com Include /etc/apache2/conf.d/local-log-origin.conf RewriteEngine On RewriteRule / https://lists.example.com/ [R] # RewriteRule /(.*) https://lists.example.com/$1 [R] CustomLog /var/log/apache2/redirect.log origin