From 24c925b05f4200ce1b8eee9cb8eb075fcb4417d5 Mon Sep 17 00:00:00 2001 From: Jonas Smedegaard Date: Mon, 3 Apr 2006 12:47:37 +0000 Subject: Add https redirect to plain www.example.org site. --- apache2/sites-available/www.secure-example.com | 15 +++++++++++++++ 1 file changed, 15 insertions(+) (limited to 'apache2') 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 + + 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 + -- cgit v1.2.3