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