From d77fb498274a1d5f7f352777ea0a25eff58520f1 Mon Sep 17 00:00:00 2001 From: Penny Leach Date: Mon, 9 Feb 2009 17:53:47 +0100 Subject: [PATCH] changes to vserverctl --- profile/base/aptsources | 8 ++++---- profile/web/data/vhost | 4 ++-- profile/webserver/vservers.template.conf | 15 +++------------ 3 files changed, 9 insertions(+), 18 deletions(-) diff --git a/profile/base/aptsources b/profile/base/aptsources index 09e8e7b..e7b5c62 100644 --- a/profile/base/aptsources +++ b/profile/base/aptsources @@ -1,8 +1,8 @@ # Citylink Mirror -#deb http://ftp.nz.debian.org/debian/ etch main non-free -#deb-src http://ftp.nz.debian.org/debian/ etch main -deb http://debian.catalyst.net.nz/debian/ etch main non-free -deb-src http://debian.catalyst.net.nz/debian/ etch main +deb http://ftp.uk.debian.org/debian/ etch main non-free +deb-src http://ftp.uk.debian.org/debian/ etch main +#deb http://debian.catalyst.net.nz/debian/ etch main non-free +#deb-src http://debian.catalyst.net.nz/debian/ etch main # Catalyst Packages deb http://debian.catalyst.net.nz/catalyst stable catalyst diff --git a/profile/web/data/vhost b/profile/web/data/vhost index 52ce512..4500cc3 100644 --- a/profile/web/data/vhost +++ b/profile/web/data/vhost @@ -1,6 +1,6 @@ - ServerName __VSNAME__.__HOST__.wgtn.cat-it.co.nz - ServerAlias *.__VSNAME__.__HOST__.wgtn.cat-it.co.nz + ServerName __VSNAME__.__HOST__ + ServerAlias *.__VSNAME__.__HOST__ VirtualDocumentRoot /var/www/web/%1 diff --git a/profile/webserver/vservers.template.conf b/profile/webserver/vservers.template.conf index 3069f00..566a89d 100644 --- a/profile/webserver/vservers.template.conf +++ b/profile/webserver/vservers.template.conf @@ -1,7 +1,7 @@ - + ServerAdmin __PROFILEOPTION_username__@catalyst.net.nz - ServerName __NAME__.__HOSTNAME__.wgtn.cat-it.co.nz - ServerAlias *.__NAME__.__HOSTNAME__.wgtn.cat-it.co.nz + ServerName __NAME__.__HOSTNAME__ + ServerAlias *.__NAME__.__HOSTNAME__ LogLevel warn ErrorLog /var/log/apache2/vserver.__NAME__.error.log @@ -17,12 +17,3 @@ ProxyPreserveHost On ProxyPass / http://__IPADDR__/ - - ServerName __NAME__.__HOSTNAME__ - ServerAlias *.__NAME__.__HOSTNAME__ - - RewriteEngine On - - RewriteCond %{HTTP_HOST} ^(.*)__NAME__.__HOSTNAME__$ - RewriteRule ^(.*)$ http://%1__NAME__.__HOSTNAME__.wgtn.cat-it.co.nz$1 [L,R=301] - -- 2.39.5