File tree Expand file tree Collapse file tree 1 file changed +23
-2
lines changed Expand file tree Collapse file tree 1 file changed +23
-2
lines changed Original file line number Diff line number Diff line change 475
475
" arg1=val1& arg2 =val2" ,
476
476
),
477
477
},
478
-
479
-
478
+ {
479
+ type => " target" ,
480
+ comment => " REQUEST_BASENAME (get)" ,
481
+ conf => qq(
482
+ SecRuleEngine On
483
+ SecRequestBodyAccess On
484
+ SecResponseBodyAccess On
485
+ SecResponseBodyMimeType null
486
+ SecDebugLog $ ENV {DEBUG_LOG}
487
+ SecDebugLogLevel 9
488
+ SecRule REQUEST_BASENAME " index.html" " phase:2,log,pass,id:500189"
489
+ ),
490
+ match_log => {
491
+ error => [ qr/ Pattern match " index.html" at REQUEST_BASENAME.*/ s, 1 ],
492
+ debug => [ qr/ Pattern match " index.html" at REQUEST_BASENAME.*/ s, 1 ],
493
+ },
494
+ match_response => {
495
+ status => qr/^ 200 $/ ,
496
+ },
497
+ request => new HTTP::Request(
498
+ GET => " http://$ ENV{ SERVER_NAME} :$ ENV{ SERVER_PORT} /index.html?apath=/my/cool/path.com" ,
499
+ ),
500
+ },
480
501
481
502
# AUTH_TYPE
482
503
# {
You can’t perform that action at this time.
0 commit comments