Skip to content

Commit b55a577

Browse files
nikolaszimmerle
authored andcommitted
docs: Add notes on how to compile a dynamic module for nginx
1 parent b6e097b commit b55a577

File tree

1 file changed

+11
-2
lines changed

1 file changed

+11
-2
lines changed

README.md

+11-2
Original file line numberDiff line numberDiff line change
@@ -24,13 +24,22 @@ Apache. As a result, this current version has less dependencies, fewer bugs, and
2424
Before compile this software make sure that you have libmodsecurity installed.
2525
You can download it from the [ModSecurity git repository](https://github.com/SpiderLabs/ModSecurity). For information pertaining to the compilation and installation of libmodsecurity please consult the documentation provided along with it.
2626

27-
With libmodsecurity installed, you can proceed with the installation of the ModSecurity-nginx connector, which follow the nginx 3rd party module installation procedure:
27+
With libmodsecurity installed, you can proceed with the installation of the ModSecurity-nginx connector, which follows the nginx third-party module installation procedure. From the nginx source directory:
2828

2929
```
3030
./configure --add-module=/path/to/ModSecurity-nginx
3131
```
3232

33-
Further information about nginx 3rd party add-ons support are available here:
33+
Or, to build a dynamic module:
34+
35+
```
36+
./configure --add-dynamic-module=/path/to/ModSecurity-nginx --with-compat
37+
```
38+
39+
Note that when building a dynamic module, your nginx source version
40+
needs to match the version of nginx you're compiling this for.
41+
42+
Further information about nginx third-party add-ons support are available here:
3443
http://wiki.nginx.org/3rdPartyModules
3544

3645

0 commit comments

Comments
 (0)