From dac6b5617dc0ebea6b68c4eda354649780cda217 Mon Sep 17 00:00:00 2001 From: Scott Ullrich Date: Tue, 23 Nov 2010 16:40:01 -0500 Subject: Adding SecReadStateLimit. Requires 2.5.13 which should be out shortly. --- config/apache_mod_security/apache_mod_security.inc | 9 +++++++++ config/apache_mod_security/apache_mod_security_settings.xml | 11 ++++++++++- 2 files changed, 19 insertions(+), 1 deletion(-) (limited to 'config/apache_mod_security') diff --git a/config/apache_mod_security/apache_mod_security.inc b/config/apache_mod_security/apache_mod_security.inc index 4eb24c2c..38d53601 100644 --- a/config/apache_mod_security/apache_mod_security.inc +++ b/config/apache_mod_security/apache_mod_security.inc @@ -221,6 +221,12 @@ function generate_apache_configuration() { else $secauditengine = "RelevantOnly"; + // SecReadStateLimit + if($config['installedpackages']['apachemodsecuritysettings']['config'][0]['SecReadStateLimit']) + $secreadstatelimit = "SecReadStateLimit " . $config['installedpackages']['apachemodsecuritysettings']['config'][0]['SecReadStateLimit'] ."\n"; + else + $secreadstatelimit = ""; + $mod_proxy .= << input - Use mod_disk_cache mod_disk_cache @@ -141,6 +140,16 @@ input + + Limits number of POSTS accepted from same IP address + SecReadStateLimit + + + + input + Configures the maximum request body size ModSecurity will store in memory. secrequestbodyinmemorylimit -- cgit v1.2.3