From 5ed53499ee0f9b949c2422d332618d061978cb3f Mon Sep 17 00:00:00 2001 From: Jonas Smedegaard Date: Mon, 3 Apr 2006 12:30:45 +0000 Subject: Add/correct non-FQDN names (SSL certificates cannot deal with such domains). --- apache2/sites-available/mail.secure-example.com | 5 ++++- apache2/sites-available/people.secure-example.com | 2 ++ apache2/sites-available/wiki.secure-example.com | 18 +++++------------- 3 files changed, 11 insertions(+), 14 deletions(-) (limited to 'apache2') diff --git a/apache2/sites-available/mail.secure-example.com b/apache2/sites-available/mail.secure-example.com index ce9bd8f..7131e8b 100644 --- a/apache2/sites-available/mail.secure-example.com +++ b/apache2/sites-available/mail.secure-example.com @@ -1,6 +1,5 @@ ServerName mail.secure-example.com:443 - ServerAlias mail ServerAdmin webmaster@secure-example.com DocumentRoot /home/webmaster/public_websites/mail.secure-example.com/ @@ -15,6 +14,8 @@ ServerName www.mail.secure-example.com:443 ServerAlias *.mail.secure-example.com:443 + ServerAlias mail:443 + ServerAlias *.mail:443 ServerAdmin webmaster@secure-example.com Include /etc/apache2/conf.d/local-ssl.conf @@ -27,6 +28,8 @@ ServerName mail.secure-example.com ServerAlias *.mail.secure-example.com + ServerAlias mail + ServerAlias *.mail ServerAdmin webmaster@secure-example.com RewriteEngine On diff --git a/apache2/sites-available/people.secure-example.com b/apache2/sites-available/people.secure-example.com index c561513..0d9b522 100644 --- a/apache2/sites-available/people.secure-example.com +++ b/apache2/sites-available/people.secure-example.com @@ -29,6 +29,8 @@ ServerName people.secure-example.com:443 ServerAlias *.people.secure-example.com:443 + ServerAlias people:443 + ServerAlias *.people:443 ServerAdmin webmaster@secure-example.com Include /etc/apache2/conf.d/local-ssl.conf diff --git a/apache2/sites-available/wiki.secure-example.com b/apache2/sites-available/wiki.secure-example.com index f77da15..9102d72 100644 --- a/apache2/sites-available/wiki.secure-example.com +++ b/apache2/sites-available/wiki.secure-example.com @@ -1,6 +1,5 @@ ServerName wiki.secure-example.com - ServerAlias wiki ServerAdmin webmaster@secure-example.com DocumentRoot /usr/share/moin/htdocs @@ -49,7 +48,8 @@ ServerName www.wiki.secure-example.com:443 - ServerAlias *.wiki.secure-example.com:443 + ServerAlias wiki:443 + ServerAlias *.wiki:443 ServerAdmin webmaster@secure-example.com Include /etc/apache2/conf.d/local-ssl.conf @@ -62,6 +62,9 @@ ServerName wiki.secure-example.com + ServerAlias *.wiki.secure-example.com + ServerName wiki + ServerAlias *.wiki ServerAdmin webmaster@secure-example.com RewriteEngine On @@ -70,14 +73,3 @@ TransferLog /dev/null - - ServerName www.wiki.secure-example.com - ServerAlias *.wiki.secure-example.com - ServerAdmin webmaster@secure-example.com - - RewriteEngine On - RewriteRule / https://wiki.secure-example.com/ [R] -# RewriteRule /(.*)? https://wiki.secure-example.com/$1 [R] - - TransferLog /dev/null - -- cgit v1.2.3