From 2543cfcbcce14d157658aa23dc89eaf1b28061a2 Mon Sep 17 00:00:00 2001
From: Peter Hormanns <peter.hormanns@jalin.de>
Date: Thu, 07 Mar 2013 14:35:30 +0100
Subject: [PATCH] correct vhost template

---
 hsarback/src/de/hsadmin/mods/dom/httpd-vhost.vm |   12 ++++++------
 1 files changed, 6 insertions(+), 6 deletions(-)

diff --git a/hsarback/src/de/hsadmin/mods/dom/httpd-vhost.vm b/hsarback/src/de/hsadmin/mods/dom/httpd-vhost.vm
index 04aed0c..6474617 100644
--- a/hsarback/src/de/hsadmin/mods/dom/httpd-vhost.vm
+++ b/hsarback/src/de/hsadmin/mods/dom/httpd-vhost.vm
@@ -51,9 +51,9 @@
 
     RewriteCond %{REQUEST_URI} !^/cgi-bin/
     RewriteCond %{REQUEST_URI} !^/fastcgi-bin/    
-    RewriteCond %{HTTP_HOST} ^(.+)\.${dom.name}\.?(:[0-9]+)?\$ [novary]
-    RewriteCond /home/doms/${dom.name}/subs/\$\{tolower:%1\} -d
-    RewriteRule ^(.*) /home/doms/${dom.name}/subs/\$\{tolower:%1\}\$1 [last]     
+    RewriteCond %{HTTP_HOST} ^(.+)\.${dom.name}\.?(:[0-9]+)?$ [novary]
+    RewriteCond /home/doms/${dom.name}/subs/${tolower:%1} -d
+    RewriteRule ^(.*) /home/doms/${dom.name}/subs/${tolower:%1}$1 [last]     
     
 #if( !${htdocsfallback} )
     RewriteCond %{REQUEST_URI} !^/cgi-bin/
@@ -126,14 +126,14 @@
     RewriteCond %{REQUEST_URI} !^/cgi-bin/
     RewriteCond %{REQUEST_URI} !^/fastcgi-bin/    
     RewriteCond %{HTTP_HOST} ^(.+)\.${dom.name}\.?(:[0-9]+)?\$ [novary]
-    RewriteCond /home/doms/${dom.name}/subs-ssl/\$\{tolower:%1\} -d
-    RewriteRule ^(.*) /home/doms/${dom.name}/subs-ssl/\$\{tolower:%1\}\$1 [last]    
+    RewriteCond /home/doms/${dom.name}/subs-ssl/${tolower:%1} -d
+    RewriteRule ^(.*) /home/doms/${dom.name}/subs-ssl/${tolower:%1}$1 [last]    
     
 #if( !${htdocsfallback} )
     RewriteCond %{REQUEST_URI} !^/cgi-bin/
 	RewriteCond %{REQUEST_URI} !^/fastcgi-bin/
     RewriteCond %{HTTP_HOST} ^(.+)\.${dom.name}\.?(:443)?\$ [novary]
-    RewriteCond /home/doms/${dom.name}/subs-ssl/\$\{tolower:%1\} !-d
+    RewriteCond /home/doms/${dom.name}/subs-ssl/${tolower:%1} !-d
     RewriteRule ^(.*) - [redirect=404,last]
 #end
 

--
Gitblit v1.9.1