Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit 798396f

Browse files
committed
Changed SecAuditEngine and added missing rules in modsecurity-config-auditlog.t
1 parent 6ec8fd9 commit 798396f

File tree

1 file changed

+8
-6
lines changed

1 file changed

+8
-6
lines changed

‎tests/modsecurity-config-auditlog.t‎

Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@ http {
6565
SecRule ARGS "@streq root" "id:21,phase:1,auditlog,status:302,redirect:http://www.modsecurity.org"
6666
SecDebugLog %%TESTDIR%%/auditlog-debug-root.txt
6767
SecDebugLogLevel 9
68-
SecAuditEngine On
68+
SecAuditEngine RelevantOnly
6969
SecAuditLogParts AB
7070
SecAuditLog %%TESTDIR%%/auditlog-root.txt
7171
SecAuditLogType Serial
@@ -76,9 +76,10 @@ http {
7676
location /subfolder1/subfolder2 {
7777
modsecurity_rules '
7878
SecRule ARGS "@streq subfolder2" "id:41,phase:1,status:302,auditlog,redirect:http://www.modsecurity.org"
79+
SecRule ARGS "@streq subfolder1" "id:42,phase:1,status:302,auditlog,redirect:http://www.modsecurity.org"
7980
SecDebugLog %%TESTDIR%%/auditlog-debug-subfolder2.txt
8081
SecDebugLogLevel 9
81-
SecAuditEngine On
82+
SecAuditEngine RelevantOnly
8283
SecAuditLogParts AB
8384
SecResponseBodyAccess On
8485
SecAuditLog %%TESTDIR%%/auditlog-subfolder2.txt
@@ -93,7 +94,7 @@ http {
9394
SecDebugLog %%TESTDIR%%/auditlog-debug-subfolder1.txt
9495
SecDebugLogLevel 9
9596
SecAuditLogParts AB
96-
SecAuditEngine On
97+
SecAuditEngine RelevantOnly
9798
SecAuditLog %%TESTDIR%%/auditlog-subfolder1.txt
9899
SecAuditLogType Serial
99100
SecAuditLogStorageDir %%TESTDIR%%/
@@ -104,10 +105,11 @@ http {
104105
modsecurity_rules '
105106
SecResponseBodyAccess On
106107
SecRule ARGS "@streq subfolder4" "id:61,phase:1,status:302,auditlog,redirect:http://www.modsecurity.org"
107-
SecRule ARGS "@streq subfolder4withE" "id:2,phase:1,ctl:auditLogParts=+E,auditlog"
108+
SecRule ARGS "@streq subfolder3" "id:62,phase:1,status:302,auditlog,redirect:http://www.modsecurity.org"
109+
SecRule ARGS "@streq subfolder4withE" "id:63,phase:1,ctl:auditLogParts=+E,auditlog"
108110
SecDebugLog %%TESTDIR%%/auditlog-debug-subfolder4.txt
109111
SecDebugLogLevel 9
110-
SecAuditEngine On
112+
SecAuditEngine RelevantOnly
111113
SecAuditLogParts AB
112114
SecAuditLog %%TESTDIR%%/auditlog-subfolder4.txt
113115
SecAuditLogType Serial
@@ -121,7 +123,7 @@ http {
121123
SecDebugLog %%TESTDIR%%/auditlog-debug-subfolder3.txt
122124
SecDebugLogLevel 9
123125
SecAuditLogParts AB
124-
SecAuditEngine On
126+
SecAuditEngine RelevantOnly
125127
SecAuditLog %%TESTDIR%%/auditlog-subfolder3.txt
126128
SecAuditLogType Serial
127129
SecAuditLogStorageDir %%TESTDIR%%/

0 commit comments

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /