r252874 - buildout/plone.recipe.apache/trunk/plone/recipe/apache/templates

"Jonathan Riboux" <svn-changes-z4DKO/[email protected]> Fri, 11 Sep 2015 14:02:09 +0000 (UTC)
Newsgroups gmane.comp.web.zope.plone.collective.cvs
Message-ID <[email protected]>
Author: jriboux
Date: Fri Sep 11 14:02:09 2015
New Revision: 252874

Modified:
   buildout/plone.recipe.apache/trunk/plone/recipe/apache/templates/inner_vhost.conf.tmpl
Log:
Apache 2.4 compatibility


Modified: buildout/plone.recipe.apache/trunk/plone/recipe/apache/templates/inner_vhost.conf.tmpl
==============================================================================
--- buildout/plone.recipe.apache/trunk/plone/recipe/apache/templates/inner_vhost.conf.tmpl	(original)
+++ buildout/plone.recipe.apache/trunk/plone/recipe/apache/templates/inner_vhost.conf.tmpl	Fri Sep 11 14:02:09 2015
@@ -15,8 +15,16 @@
     ServerName $host
 
     RewriteEngine On
-    RewriteLog $log_dir/rewrite_${host}.log
-    RewriteLogLevel 0
+
+    # Apache 2.2
+    <IfModule !mod_authz_core.c>
+        RewriteLog $log_dir/rewrite_${host}.log
+        RewriteLogLevel 0
+    </IfModule>
+    # Apache 2.4
+    <IfModule mod_authz_core.c>
+        LogLevel rewrite:warn
+    </IfModule>
 
     CustomLog $log_dir/access_${host}.log ${log_format}
     ErrorLog $log_dir/error_${host}.log

------------------------------------------------------------------------------