-
-
Notifications
You must be signed in to change notification settings - Fork 402
Documentation: Enhancement of installation process for Nginx / IIS #1988
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
@azurit It did not work in the past, at least in my tests. But will double check. |
I remember the problems I had now. This is something that comes from modsecurity v2.x for nginx I think: there are two different "include" directives. The So we should use This is an example from the config in our dockers:
|
Wow. I was not aware of this. |
It definitely didn't work on old ModSec, but that info was now three years old. Good to see that we can simplify now! |
I must add that |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Since the #1677 ModSecurity v3 supports the include rules/*.conf
. I checked it again, it works.
According to modsecurity documentation,
Include
directive used in installation process for Nginx and IIS supports wildcards:https://github.com/SpiderLabs/ModSecurity/wiki/Reference-Manual-(v2.x)
Not sure why we are not using it, maybe previous versions of modsecurity doesn't supports this. I also double checked this behavior in modsec source: Wildcards are really supported and matched files are processesd in
ASCII collation order
. Important to note is that i didn't test it.