Newer apaches default to text/plain instead of null.

Make matching files a bit more robust.
This commit is contained in:
brectanus
2008-06-16 17:20:50 +00:00
parent 21f305095c
commit 326208d02c
3 changed files with 73 additions and 38 deletions

View File

@@ -33,7 +33,7 @@
SecDebugLog $ENV{DEBUG_LOG}
SecDebugLogLevel 9
SecResponseBodyAccess On
SecResponseBodyMimeType null
SecResponseBodyMimeType text/plain null
SecRule RESPONSE_BODY "TEST" "phase:4,deny"
),
match_log => {
@@ -54,7 +54,7 @@
SecDebugLog $ENV{DEBUG_LOG}
SecDebugLogLevel 9
SecResponseBodyAccess Off
SecResponseBodyMimeType null
SecResponseBodyMimeType text/plain null
SecRule RESPONSE_BODY "TEST" "phase:4,deny"
),
match_log => {
@@ -76,7 +76,7 @@
conf => qq(
SecRuleEngine On
SecResponseBodyAccess On
SecResponseBodyMimeType null
SecResponseBodyMimeType text/plain null
SecResponseBodyLimit 8192
),
match_log => {
@@ -95,7 +95,7 @@
conf => qq(
SecRuleEngine On
SecResponseBodyAccess On
SecResponseBodyMimeType null
SecResponseBodyMimeType text/plain null
SecResponseBodyLimit 9000
),
match_log => {
@@ -114,7 +114,7 @@
conf => qq(
SecRuleEngine On
SecResponseBodyAccess On
SecResponseBodyMimeType null
SecResponseBodyMimeType text/plain null
SecResponseBodyLimit 8000
),
match_log => {
@@ -135,7 +135,7 @@
conf => qq(
SecRuleEngine On
SecResponseBodyAccess On
SecResponseBodyMimeType null
SecResponseBodyMimeType text/plain null
SecResponseBodyLimit 5
SecResponseBodyLimitAction Reject
),
@@ -155,7 +155,7 @@
conf => qq(
SecRuleEngine On
SecResponseBodyAccess On
SecResponseBodyMimeType null
SecResponseBodyMimeType text/plain null
SecResponseBodyLimit 5
SecDebugLog $ENV{DEBUG_LOG}
SecDebugLogLevel 4