Skip to content

[Question]: nginx location configuration #2276

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

Closed
aledbf opened this issue Mar 4, 2020 · 1 comment
Closed

[Question]: nginx location configuration #2276

aledbf opened this issue Mar 4, 2020 · 1 comment

Comments

@aledbf
Copy link

aledbf commented Mar 4, 2020

I am using this configuration:

  • http section:
modsecurity on;
modsecurity_rules_file /etc/nginx/modsecurity/modsecurity.conf-recommended;
modsecurity_rules_file /etc/nginx/owasp-modsecurity-crs/nginx-modsecurity.conf;
  • a particular location:
modsecurity_rules '
	Include /etc/nginx/owasp-modsecurity-crs/nginx-modsecurity.conf
	SecRuleEngine On
	SecRequestBodyAccess On
	SecResponseBodyAccess Off
	SecAuditEngine RelevantOnly
	SecRuleRemoveById 911100
';

The issue here is related to modsecurity_rules configuration. There is no enforced mode in the location
Is this the right way to configure the module?

How is it possible to debug this misconfiguration?
Thanks

xref: owasp-modsecurity/ModSecurity-nginx#183

@zimmerle
Copy link
Contributor

zimmerle commented Mar 5, 2020

Let's have this conversation at owasp-modsecurity/ModSecurity-nginx#183

@zimmerle zimmerle closed this as completed Mar 5, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants