blob: 3842593dd8556f111522344857153f28f099c3e1 (
plain)
- <VirtualHost *:80>
- ServerName www.example.com
- ServerAlias www
- ServerAdmin webmaster@example.com
- DocumentRoot /home/webmaster/public_websites/www.example.com/
- ErrorLog /var/log/apache2/www.example.com-error.log
- CustomLog /var/log/apache2/www.example.com-access.log combined
- </VirtualHost>
- <VirtualHost *:80>
- ServerName example.com
- ServerAlias *.www.example.com
- ServerAdmin webmaster@example.com
- Include /etc/apache2/conf.d/local-log-origin.conf
- RewriteEngine On
- RewriteRule / http://www.example.com/ [R]
- # RewriteRule /(.*) http://www.example.com/$1 [R]
- CustomLog /var/log/apache2/redirect.log origin
- </VirtualHost>
- <VirtualHost *:443>
- ServerName www.example.com:443
- ServerAlias *.example.com:443
- ServerName www:443
- ServerAlias *.www: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 / http://www.example.com/ [R]
- # RewriteRule /(.*) http://www.example.com/$1 [R]
- CustomLog /var/log/apache2/redirect.log origin
- </VirtualHost>
|