Tell me more ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

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.

share|improve this question

Know someone who can answer? Share a link to this question via email, Google+, Twitter, or Facebook.

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Browse other questions tagged or ask your own question.