Skip to content

Comments

refactor: remove NGINX support from v2 (#3498)#3502

Merged
airween merged 2 commits intoowasp-modsecurity:v2/masterfrom
sanjib2006:v2/dev/issue_3498_remove_nginx
Feb 22, 2026
Merged

refactor: remove NGINX support from v2 (#3498)#3502
airween merged 2 commits intoowasp-modsecurity:v2/masterfrom
sanjib2006:v2/dev/issue_3498_remove_nginx

Conversation

@sanjib2006
Copy link

what

Followed #3498 and removed the NGINX module and related things

files and folders deleted/modified other than mentioned directly in the issue:

  • standalone/server.c: Changed ap_server_argv0 value from "nginx" to "standalone".
  • tests/regression/action/00-disruptive-actions.t: Removed NGINX-specific test expectations (nginx => ...).
  • tests/regression/config/00-load-modsec.t: Removed NGINX-specific test expectations.
  • tests/regression/nginx/: Deleted directory containing NGINX-specific regression test configurations

why

  • The NGINX module for v2 is not feature-complete, and I removed the related files as mentioned in the issue

references

Copy link
Collaborator

@fzipi fzipi left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

For now it looks good. I'll grep to see if we need to cleanup additional stuff.

@fzipi
Copy link
Collaborator

fzipi commented Feb 20, 2026

Maybe adding on top of CHANGES:

DD MMM YYYY - 2.9.13
--------------------

 * chore: removed support for nginx in v2.x

So it is documented there also.

@sanjib2006
Copy link
Author

These were commented out so I did not touch them in this commit

  • Lines: 613-644, tests/regression/config/10-request-directives.t
  • Lines: 110-145, tests/regression/config/10-audit-directives.t

@fzipi fzipi added 2.x Related to ModSecurity version 2.x cleanup Removal of an unused feature labels Feb 20, 2026
@airween
Copy link
Member

airween commented Feb 20, 2026

So it is documented there also.

Just fyi: I don't expect any maintainers to fill up the CHANGELOG. Usually I can collect all changes from PR's. But as you want...

@sanjib2006
Copy link
Author

So should I edit the CHANGELOG??

@airween
Copy link
Member

airween commented Feb 20, 2026

So should I edit the CHANGELOG??

You don't need to edit, but you can (through a regular commit) 😃.

As I wrote, I always collect all PR's and fill the changelog before releases.

@sanjib2006
Copy link
Author

ok I won't edit that 😄

@sanjib2006 sanjib2006 requested a review from fzipi February 21, 2026 06:25
@airween
Copy link
Member

airween commented Feb 21, 2026

@sanjib2006 thanks for this PR.

I've made a review, please take a look at my comments.

And here are some more staff that you might review too:

  • please run command grep -riI nginx doc/* in your source root, and remove nginx patterns from all occurrences
  • there are two tests (you mentioned them previously), in tests/regression/config/10-request-directives.t and tests/regression/config/10-audit-directives.t; just remove them, those are not relevant anymore

Thanks again!

@sonarqubecloud
Copy link

Copy link
Member

@airween airween left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM!

@airween
Copy link
Member

airween commented Feb 22, 2026

Thank you @sanjib2006!

@airween airween merged commit 7db0379 into owasp-modsecurity:v2/master Feb 22, 2026
95 of 98 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

2.x Related to ModSecurity version 2.x cleanup Removal of an unused feature

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants