summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xapache/apache-ssl.cf29
1 files changed, 15 insertions, 14 deletions
diff --git a/apache/apache-ssl.cf b/apache/apache-ssl.cf
index 9248364..78f192e 100755
--- a/apache/apache-ssl.cf
+++ b/apache/apache-ssl.cf
@@ -1,4 +1,4 @@
-#! /usr/bin/cfengine -qf
+#! /usr/bin/cfengine -qvf
control:
OutputPrefix = ("${cf_prefix}")
@@ -317,35 +317,36 @@ editfiles:
UnsetAbort "^# END CFENGINE$"
EndGroup
#
- # LoadModule authshadow_module /usr/lib/apache/1.3/mod_xslt.so
+ # LoadModule xslt_module /usr/lib/apache/1.3/mod_xslt.so
#
- # <IfModule mod_auth_shadow.c>
+ # <IfModule mod_xslt.c>
# <Location /xslt>
# AddHandler mod_xslt .html
# AddHandler mod_xslt .txt
# </Location>
# </IfModule>
#
- BeginGroupIfFileExists "/usr/lib/apache/1.3/mod_auth_shadow.so"
+ BeginGroupIfFileExists "/usr/lib/apache/1.3/mod_xslt.so"
ResetSearch "1"
-# bug! UnCommentLinesMatching "^#[[:blank:]]*LoadModule[[:blank:]]+authshadow_module[[:blank:]].*"
- LocateLineMatching "^#[[:blank:]]*LoadModule[[:blank:]]+authshadow_module[[:blank:]]+/usr/lib/apache/1.3/mod_auth_shadow.so$"
- ReplaceLineWith "LoadModule authshadow_module /usr/lib/apache/1.3/mod_auth_shadow.so"
+# bug! UnCommentLinesMatching "^#[[:blank:]]*LoadModule[[:blank:]]+xslt_module[[:blank:]].*"
+ LocateLineMatching "^#[[:blank:]]*LoadModule[[:blank:]]+xslt_module[[:blank:]]+/usr/lib/apache/1.3/mod_xslt.so$"
+ ReplaceLineWith "LoadModule xslt_module /usr/lib/apache/1.3/mod_xslt.so"
CatchAbort
AbortAtLineMatching "^# END CFENGINE$"
LocateLineMatching "^# BEGIN CFENGINE$"
- BeginGroupIfNoSuchLine "<IfModule mod_auth_shadow.c>"
- InsertLine "<IfModule mod_auth_shadow.c>"
- InsertLine " <Location />"
+ BeginGroupIfNoSuchLine "<IfModule mod_xslt.c>"
+ InsertLine "<IfModule mod_xslt.c>"
+ InsertLine " <Location /xslt>"
InsertLine " </Location>"
InsertLine "</IfModule>"
EndGroup
ResetSearch "1"
LocateLineMatching "^# BEGIN CFENGINE$"
- LocateLineMatching "^<IfModule mod_auth_shadow.c>$"
- LocateLineMatching "[[:blank:]]+<Location />"
- BeginGroupIfNoLineMatching "[[:blank:]]+AuthShadow Off"
- InsertLine " AuthShadow Off"
+ LocateLineMatching "^<IfModule mod_xslt.c>$"
+ LocateLineMatching "[[:blank:]]+<Location /xslt>"
+ BeginGroupIfNoLineMatching "[[:blank:]]+AddHandler mod_xslt .html"
+ InsertLine " AddHandler mod_xslt .html"
+ InsertLine " AddHandler mod_xslt .txt"
EndGroup
UnsetAbort "^# END CFENGINE$"
EndGroup