summaryrefslogtreecommitdiff
path: root/cfengine/cf.services.web
diff options
context:
space:
mode:
Diffstat (limited to 'cfengine/cf.services.web')
-rw-r--r--cfengine/cf.services.web33
1 files changed, 33 insertions, 0 deletions
diff --git a/cfengine/cf.services.web b/cfengine/cf.services.web
index c0510e4..c67f141 100644
--- a/cfengine/cf.services.web
+++ b/cfengine/cf.services.web
@@ -309,6 +309,39 @@ editfiles:
EndGroup
UnsetAbort "^# END CFENGINE$"
EndGroup
+ #
+ # LoadModule authshadow_module /usr/lib/apache/1.3/mod_xslt.so
+ #
+ # <IfModule mod_auth_shadow.c>
+ # <Location /xslt>
+ # AddHandler mod_xslt .html
+ # AddHandler mod_xslt .txt
+ # </Location>
+ # </IfModule>
+ #
+ BeginGroupIfFileExists "/usr/lib/apache/1.3/mod_auth_shadow.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"
+ CatchAbort
+ AbortAtLineMatching "^# END CFENGINE$"
+ LocateLineMatching "^# BEGIN CFENGINE$"
+ BeginGroupIfNoSuchLine "<IfModule mod_auth_shadow.c>"
+ InsertLine "<IfModule mod_auth_shadow.c>"
+ InsertLine " <Location />"
+ 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"
+ EndGroup
+ UnsetAbort "^# END CFENGINE$"
+ EndGroup
}
processes:
"apache" restart "/etc/init.d/apache restart"