diff options
author | Jonas Smedegaard <dr@jones.dk> | 2006-04-03 12:47:37 +0000 |
---|---|---|
committer | Jonas Smedegaard <dr@jones.dk> | 2006-04-03 12:47:37 +0000 |
commit | 24c925b05f4200ce1b8eee9cb8eb075fcb4417d5 (patch) | |
tree | 87b59726d38ea92e42e084391d376809e2494095 | |
parent | 00f2e3e3e933e4fb0b24d8c1af940571f2e01852 (diff) |
Add https redirect to plain www.example.org site.
-rw-r--r-- | apache2/sites-available/www.secure-example.com | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/apache2/sites-available/www.secure-example.com b/apache2/sites-available/www.secure-example.com index 6510f04..792905a 100644 --- a/apache2/sites-available/www.secure-example.com +++ b/apache2/sites-available/www.secure-example.com @@ -19,3 +19,18 @@ TransferLog /dev/null </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 + + RewriteEngine On + RewriteRule / http://www.example.com/ [R] +# RewriteRule /(.*) http://www.example.com/$1 [R] + + TransferLog /dev/null +</VirtualHost> |