summaryrefslogtreecommitdiff
path: root/apache2/sites-available/mail.secure-example.com
blob: b9dea83c5ce45ba9de41a7d43a2b1a7194ee32e9 (plain)
  1. <VirtualHost *:443>
  2. ServerName mail.example.com:443
  3. ServerAdmin webmaster@example.com
  4. DocumentRoot /home/webmaster/public_websites/mail.example.com/
  5. Include /etc/apache2/conf.d/local-ssl.conf
  6. Include /etc/apache2/conf.d/horde2.conf
  7. <Location /horde2>
  8. Options FollowSymLinks -MultiViews
  9. DirectoryIndex index.php
  10. </Location>
  11. </VirtualHost>
  12. <VirtualHost *:443>
  13. ServerName www.mail.example.com:443
  14. ServerAlias *.mail.example.com:443
  15. ServerAlias mail:443
  16. ServerAlias *.mail:443
  17. ServerAdmin webmaster@example.com
  18. Include /etc/apache2/conf.d/local-ssl.conf
  19. Include /etc/apache2/conf.d/local-log-origin.conf
  20. RewriteEngine On
  21. RewriteRule / https://mail.example.com/ [R]
  22. CustomLog /var/log/apache2/redirect.log origin
  23. </VirtualHost>
  24. <VirtualHost *:80>
  25. ServerName mail.example.com
  26. ServerAlias *.mail.example.com
  27. ServerAlias mail
  28. ServerAlias *.mail
  29. ServerAdmin webmaster@example.com
  30. Include /etc/apache2/conf.d/local-log-origin.conf
  31. RewriteEngine On
  32. RewriteRule / https://mail.example.com/ [R]
  33. CustomLog /var/log/apache2/redirect.log origin
  34. </VirtualHost>