summaryrefslogtreecommitdiff
path: root/templates
diff options
context:
space:
mode:
authorJerome Charaoui <jcharaoui@cmaisonneuve.qc.ca>2010-05-10 11:27:10 -0400
committerJerome Charaoui <jcharaoui@cmaisonneuve.qc.ca>2010-05-10 11:27:10 -0400
commit92f465fa4a522c809c5e4f58f4e87364661beb6b (patch)
tree667a0d55d51b3d7eb91ac991e9ef4c922e44b413 /templates
parent6b51b05fcbb9f4ba257aa2c7d60741d7a0eca6d0 (diff)
parent973e9107bb29bcd98868fabda464dc71e6d8af23 (diff)
Merge branch 'master' of git://git.puppet.immerda.ch/module-apache
Diffstat (limited to 'templates')
-rw-r--r--templates/vhosts/php_typo3/php_typo3.erb6
-rw-r--r--templates/vhosts/php_wordpress/php_wordpress.erb2
2 files changed, 8 insertions, 0 deletions
diff --git a/templates/vhosts/php_typo3/php_typo3.erb b/templates/vhosts/php_typo3/php_typo3.erb
index 126dbb1..fbdde07 100644
--- a/templates/vhosts/php_typo3/php_typo3.erb
+++ b/templates/vhosts/php_typo3/php_typo3.erb
@@ -138,6 +138,12 @@
php_admin_value allow_url_fopen On
</Directory>
+ <Location "/typo3">
+ <IfModule mod_security2.c>
+ SecRuleEngine Off
+ </IfModule>
+ </Location>
+
<IfModule mod_security2.c>
<%- if mod_security.to_s == 'true' then -%>
SecRuleEngine On
diff --git a/templates/vhosts/php_wordpress/php_wordpress.erb b/templates/vhosts/php_wordpress/php_wordpress.erb
index 980fc26..72f4907 100644
--- a/templates/vhosts/php_wordpress/php_wordpress.erb
+++ b/templates/vhosts/php_wordpress/php_wordpress.erb
@@ -65,6 +65,7 @@
SecDebugLog <%= logdir %>/mod_security_debug.log
# http://optics.csufresno.edu/~kriehn/fedora/fedora_files/f9/howto/modsecurity.html
SecRuleRemoveById "960010"
+ SecRuleRemoveById "950018"
</IfModule>
<%- unless additional_options.to_s == 'absent' then -%>
@@ -135,6 +136,7 @@
SecDebugLog <%= logdir %>/mod_security_debug.log
# http://optics.csufresno.edu/~kriehn/fedora/fedora_files/f9/howto/modsecurity.html
SecRuleRemoveById "960010"
+ SecRuleRemoveById "950018"
</IfModule>
<%- unless additional_options.to_s == 'absent' then -%>