0

Current settings: - mod-security 2.9

Mod-security itself work as expected if enabled globally with SecRuleEngine on on main config but I need to enable it only for one specific folder for testing purpose.

so i try:

<Directory "/test_folder/test1/">
 SecRuleEngine On
</Directory>

and

<LocationMatch "/test1/">
 SecRuleEngine On
</LocationMatch>

both solution doesn't work.

there are something that I miss or is not possible to enable it per directory?

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.