SecAction
Using SecAction
, you can execute any number of actions unconditionally. The syntax is:
SecAction Actions
As an example, the following SecAction
logs a message to the HTTP error log file:
SecAction "pass,log,logdata:'Testing SecAction'"
It is important to specify pass
in a SecAction
directive, as the default action will be prepended to the action list just as with a normal SecRule
. If the default action is to deny
the request then the SecAction
above would have denied all requests if pass
was missing.