owasp-modsecurity / owasp-modsecurity/ModSecurity-nginx

Amazon-linux: unknown directive.

Open
#350 2 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
Perl
Stars
1.9k
Forks
312
PR merge metrics
No merged PRs in 30d

Description

I run the compilation in AWS-linux 2023 as in the readme:

$ ./build.sh
$ ./configure
$ make
$ sudo make install

Now it seems to complete but after restarting the standard Nginx package, with "modsecurity on" added to config, I get:

nginx: [emerg] unknown directive "modsecurity" in (config file)

Is there a step missing to recompile all of Nginx or, enable the module I compiled?

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 README and trace the documented build.sh, ./configure, make, and make install steps on AWS Linux 2023. Then inspect how the standard Nginx package loads the compiled connector and verify the result by restarting Nginx with "modsecurity on" in its configuration without the unknown-directive error.

Written by the indexing model from the issue text.

Assessment

Tech stack
aws, linux, nginx
Domain
security
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Active
Clarity
Needs clarification
Newbie friendliness
38/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.