blob: edf223fefc5cc1628aa371a408bf54f3f5675bfd (
plain)
- <VirtualHost *:443>
- ServerName mail.example.com:443
- ServerAdmin webmaster@example.com
- DocumentRoot /home/webmaster/public_websites/mail.example.com/
- Include conf-available/local-tls.conf
- Include conf.d/local-php.conf
- Include conf.d/local-horde3.conf
- ErrorLog ${APACHE_LOG_DIR}/mail.example.com-error.log
- CustomLog ${APACHE_LOG_DIR}/mail.example.com-access.log combined
- </VirtualHost>
- <VirtualHost *:443>
- ServerName www.mail.example.com:443
- ServerName *.mail.example.com:443
- ServerName mail:443
- ServerName *.mail:443
- Include conf-available/local-tls.conf
- RewriteEngine On
- RewriteRule / https://mail.example.com/ [R]
- # RewriteRule /(.*) https://mail.example.com/$1 [R]
- CustomLog ${APACHE_LOG_DIR}/redirect.log vhost_combined
- </VirtualHost>
- <VirtualHost *:80>
- ServerName mail.example.com
- ServerAlias *.mail.example.com
- ServerAlias mail
- ServerAlias *.mail
- RewriteEngine On
- RewriteRule / https://mail.example.com/ [R]
- # RewriteRule /(.*) https://mail.example.com/$1 [R]
- CustomLog ${APACHE_LOG_DIR}/redirect.log vhost_combined
- </VirtualHost>
|