blob: e8709ed7552117e0022b284fad2a7630fe0d2979 (
plain)
- <VirtualHost *:80>
- ServerName people.example.com
- ServerAlias people
- ServerAdmin webmaster@example.com
- DocumentRoot /home/webmaster/public_websites/people.example.com/
- Include /etc/apache2/conf.d/local-userdir.conf
- Include /etc/apache2/conf.d/local-macvolumes.conf
- RewriteEngine On
- RewriteRule ^/-(.*)$ http://people.example.com/~$1 [R]
- RewriteRule ^/([^~].*)$ http://people.example.com/~$1 [R]
- 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"
- </VirtualHost>
- <VirtualHost *:80>
- ServerName www.people.example.com
- ServerAlias *.people.example.com
- ServerAdmin webmaster@example.com
- RewriteEngine On
- RewriteRule / http://people.example.com/ [R]
- # RewriteRule /(.*) http://people.example.com/$1 [R]
- TransferLog /dev/null
- </VirtualHost>
- <VirtualHost *:443>
- ServerName people.example.com:443
- ServerAlias *.people.example.com:443
- ServerAlias people:443
- ServerAlias *.people:443
- ServerAdmin webmaster@example.com
- Include /etc/apache2/conf.d/local-ssl.conf
- RewriteEngine On
- RewriteRule / http://people.example.com/ [R]
- # RewriteRule /(.*) http://people.example.com/$1 [R]
- TransferLog /dev/null
- </VirtualHost>
|