owasp-modsecurity / owasp-modsecurity/ModSecurity

Building ModSecurity Dynamic Module: Should I use ./configure --with-pcre2 for libmodsecurity and Nginx Connector?

Open
#3,277 3 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

3.x
Dominant language
C++
Stars
9.8k
Forks
1.8k
Avg merge
2h 46m
Merged PRs (30d)
1

Description

I am building the Modsecurity module dynamically against Nginx v1.27.2 Mainline, on Ubuntu 22.04. The Ubuntu 22.04 instructions HERE: say to use the configure flag --with-pcre2.

Are these old Instructions?

  1. Should I be using the --with-pcre2 configure flag when building LibModsecurity v3.0.13 from https://github.com/owasp-modsecurity/ModSecurity ?

  2. Secondly, should I be using the --with-pcre2 configure flag when building Modsecurity v3.0.13 from https://github.com/owasp-modsecurity/ModSecurity ?

  3. Lastly, should I be using the --with-pcre2 configure flag when building the Modsecurity Connector Module v1.0.3 from https://github.com/owasp-modsecurity/ModSecurity-nginx ?

I just want to be sure where and when I should be using the --with-pcre2 flags when attempting to build the module dynamically on Ubunut 22.04.

Thanks for the help.

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start with the Ubuntu 22.04 compilation recipe linked in the issue and compare its --with-pcre2 guidance with the build instructions for ModSecurity v3.0.13 and the ModSecurity-nginx connector v1.0.3. Check the configure entry points for libmodsecurity and the connector, then document which component uses the flag and update the relevant instructions if they are outdated.

Written by the indexing model from the issue text.

Assessment

Tech stack
cpp, nginx, ubuntu
Domain
build-system, documentation
Issue type
Documentation
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.