0

Are htaccess rules executed before modsecurity rules?

Sending illegal requests to couple of domains some of them trigger modsecurity but some of them with same illegal requests are not showing modsecurity forbidden message but 404 instead.

migrated from security.stackexchange.com Dec 15 '18 at 16:39

This question came from our site for information security professionals.

  • Which version of ModSecurity are you using? – airween Jan 5 at 19:24
  • Version is 2.9.2 – titus Jan 6 at 19:00
  • 1
    It would be know more about your config, so I can't tell you more than set up the level to "debug" for error log, and try to catch the error... sorry. – airween Jan 7 at 10:24
  • @airween I did not have error pages set in Apache properly. I am aware that this question is wide to answer in a simple maner. What I have concluded is that modsecurity is triggered before .htaccess. Thanks for your interest in my issue. – titus Jan 8 at 10:34

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.