Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

added disable error log support #360

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

Open
fatihusta wants to merge 3 commits into owasp-modsecurity:master
base: master
Choose a base branch
Loading
from fatihusta:disable-error-log

Conversation

Copy link

@fatihusta fatihusta commented Aug 13, 2025

modified old PR

#327

tomsommer reacted with thumbs up emoji
modified old PR
owasp-modsecurity#327
Signed-off-by: Fatih USTA <fatihusta86@gmail.com>
Copy link
Member

airween commented Aug 13, 2025

Hi @fatihusta,

many thanks for update the mentioned patch.

Could you add a new test case to the CI workflow, like this one? Just turn on this new feature, send an attack which triggers a rule, and check that the error.log is empty.

Thanks!

fatihusta reacted with thumbs up emoji

Copy link

tomsommer commented Aug 13, 2025
edited
Loading

Thank you for this. I'm already using it :)

My only feedback would be that the name of the variable is a bit confusing, you turn it ON to turn something OFF. modsecurity_use_error_log with default on would maybe make more sense?

Just my two cents

airween reacted with thumbs up emoji

Signed-off-by: Fatih USTA <fatihusta86@gmail.com>
Copy link
Member

airween commented Aug 13, 2025

@fatihusta thanks for adding the test.

What do you think about @tomsommer's idea. I think you should consider it - I agree with him, the current implementation has a bit weird logic.

Also, after we agreed what should be the final keyword, please add the documentation into our README (README is part of the repository).

- tests are changed with new directive name
- nginx.conf updated with new directive name
- added doc
Signed-off-by: Fatih USTA <fatihusta86@gmail.com>
Copy link
Author

Hi
I changed the directive name as modsecurity_use_error_log. Default is on.

Thanks @tomsommer @airween

tomsommer reacted with thumbs up emoji

Copy link
Member

airween commented Aug 15, 2025

Hi I changed the directive name as modsecurity_use_error_log. Default is on.

Thanks - I'm going to check this soon. Until then, could you add this new keyword into README.md?

Copy link
Author

Hi I changed the directive name as modsecurity_use_error_log. Default is on.

Thanks - I'm going to check this soon. Until then, could you add this new keyword into README.md?

I already added modsecurity_use_error_log key into README.md.

tomsommer reacted with thumbs up emoji

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Reviewers
No reviews
Assignees
No one assigned
Labels
None yet
Projects
None yet
Milestone
No milestone
Development

Successfully merging this pull request may close these issues.

AltStyle によって変換されたページ (->オリジナル) /