From a5dff786dc8da073312fbd94c24649dd55e8a9b0 Mon Sep 17 00:00:00 2001 From: Nigel McNie Date: Mon, 14 May 2007 22:47:29 +1200 Subject: [PATCH] User genericity --- profile/webserver/vservers.template.conf | 15 +++++++-------- 1 file changed, 7 insertions(+), 8 deletions(-) diff --git a/profile/webserver/vservers.template.conf b/profile/webserver/vservers.template.conf index 2e8c105..3069f00 100644 --- a/profile/webserver/vservers.template.conf +++ b/profile/webserver/vservers.template.conf @@ -1,7 +1,7 @@ - ServerAdmin martyn@catalyst.net.nz - ServerName __NAME__.abelard.wgtn.cat-it.co.nz - ServerAlias *.__NAME__.abelard.wgtn.cat-it.co.nz + ServerAdmin __PROFILEOPTION_username__@catalyst.net.nz + ServerName __NAME__.__HOSTNAME__.wgtn.cat-it.co.nz + ServerAlias *.__NAME__.__HOSTNAME__.wgtn.cat-it.co.nz LogLevel warn ErrorLog /var/log/apache2/vserver.__NAME__.error.log @@ -16,14 +16,13 @@ ProxyPreserveHost On ProxyPass / http://__IPADDR__/ - AllowEncodedSlashes On - ServerName __NAME__.abelard - ServerAlias *.__NAME__.abelard + ServerName __NAME__.__HOSTNAME__ + ServerAlias *.__NAME__.__HOSTNAME__ RewriteEngine On - RewriteCond %{HTTP_HOST} ^(.*)__NAME__.abelard$ - RewriteRule ^(.*)$ http://%1__NAME__.abelard.wgtn.cat-it.co.nz$1 [L,R=301] + RewriteCond %{HTTP_HOST} ^(.*)__NAME__.__HOSTNAME__$ + RewriteRule ^(.*)$ http://%1__NAME__.__HOSTNAME__.wgtn.cat-it.co.nz$1 [L,R=301] -- 2.39.5