summaryrefslogtreecommitdiff
path: root/apache2/sites-available/people.secure-example.com
blob: 0d9b522cfba0f1c033df71713541db56d91493b8 (plain)
  1. <VirtualHost *:80>
  2. ServerName people.secure-example.com
  3. ServerAlias people
  4. ServerAdmin webmaster@secure-example.com
  5. DocumentRoot /home/webmaster/public_websites/people.secure-example.com/
  6. Include /etc/apache2/conf.d/local-userdir.conf
  7. Include /etc/apache2/conf.d/local-macvolumes.conf
  8. RewriteEngine On
  9. RewriteRule ^/-(.*)$ http://people.secure-example.com/~$1 [R]
  10. RewriteRule ^/([^~].*)$ http://people.secure-example.com/~$1 [R]
  11. Include /etc/apache2/conf.d/local-log-vhosts.conf
  12. CustomLog "| /usr/sbin/vlogger -s access.log -u admin -g admin -t '%Y.%m.%d' /home/webmaster/weblogs" combined_vlogger
  13. ErrorLog "| /usr/sbin/vlogger -s error.log -u admin -g admin -t '%Y.%m.%d' -e /home/webmaster/weblogs/ERRORS"
  14. </VirtualHost>
  15. <VirtualHost *:80>
  16. ServerName www.people.secure-example.com
  17. ServerAlias *.people.secure-example.com
  18. ServerAdmin webmaster@secure-example.com
  19. RewriteEngine On
  20. RewriteRule / http://people.secure-example.com/ [R]
  21. # RewriteRule /(.*) http://people.secure-example.com/$1 [R]
  22. TransferLog /dev/null
  23. </VirtualHost>
  24. <VirtualHost *:443>
  25. ServerName people.secure-example.com:443
  26. ServerAlias *.people.secure-example.com:443
  27. ServerAlias people:443
  28. ServerAlias *.people:443
  29. ServerAdmin webmaster@secure-example.com
  30. Include /etc/apache2/conf.d/local-ssl.conf
  31. RewriteEngine On
  32. RewriteRule / http://people.secure-example.com/ [R]
  33. # RewriteRule /(.*) http://people.secure-example.com/$1 [R]
  34. TransferLog /dev/null
  35. </VirtualHost>