From 4f15d893ba9c434ae495f47b754a9da05bfab312 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?C=C3=A9dric=20de=20Saint=20Martin?= <cedric.dsm@tiolive.com>
Date: Mon, 20 Feb 2012 10:30:03 +0100
Subject: [PATCH] Frontend : Enable zope rewrite in apache template

---
 slapos/recipe/apache/template/apache.conf.in | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/slapos/recipe/apache/template/apache.conf.in b/slapos/recipe/apache/template/apache.conf.in
index 8f832562d3..014cc67f39 100644
--- a/slapos/recipe/apache/template/apache.conf.in
+++ b/slapos/recipe/apache/template/apache.conf.in
@@ -38,10 +38,10 @@ CustomLog "%(access_log)s" common
 %(path_enable)s
 
 # Magic of Zope related rewrite
-#RewriteMap apachemapzope txt:%(apachemapzope_path)s
-#RewriteEngine On
+RewriteMap apachemapzope txt:%(apachemapzope_path)s
+RewriteEngine On
 # XXX-Cedric : apply only known apachemapzope rules.
-#RewriteRule ^/(\w+)($|/.*) ${apachemapzope:$1}/VirtualHostBase/https/%(apache_domain)s:%(port)s/VirtualHostRoot/_vh_$1$2 [L,P]
+RewriteRule ^/(\w+)($|/.*) ${apachemapzope:$1}/VirtualHostBase/https/%(apache_domain)s:%(port)s/VirtualHostRoot/_vh_$1$2 [L,P]
 
 # Sadly, Zope isn't used everywhere. So let's add a generic purpose rule
 RewriteMap apachemapgeneric txt:%(apachemap_path)s
-- 
2.30.9