I am trying to print out an error message on rule trip in mod_sec2. I use to have it working but never wrote it down and now I can't figure out how to get it to print X error message for me when someone trips a rule.
I have tried the following two and neither work:
SecRule ARGS x "msg:'Message here not printed only to logs'"
SecRule ARGS x "status:'Message here not printed only to logs'"
Of course neither prints output to browser when tripped. The first outputs to log but the second gives me an error when I restart apache, I figure because it need's an error code like 500 or something.