Mise à jour de 'Nginx/Modules.md'
This commit is contained in:
@@ -40,20 +40,21 @@ Ce passage n'est nécessaire que si on souhaite utiliser le module dynamique Mod
|
|||||||
|
|
||||||
```shell
|
```shell
|
||||||
# Installation de ModSecurity (Library) -> /usr/local/modsecurity/
|
# Installation de ModSecurity (Library) -> /usr/local/modsecurity/
|
||||||
cd ~/ngx-modules-src/ModSecurity
|
cd ModSecurity
|
||||||
git submodule init
|
git submodule init
|
||||||
git submodule update
|
git submodule update
|
||||||
./build.sh
|
./build.sh
|
||||||
./configure
|
./configure
|
||||||
make
|
make
|
||||||
sudo make install
|
sudo make install
|
||||||
|
cd -
|
||||||
```
|
```
|
||||||
|
|
||||||
Compilation des modules dynamiques
|
Compilation des modules dynamiques
|
||||||
----------------------------------
|
----------------------------------
|
||||||
|
|
||||||
```shell
|
```shell
|
||||||
cd ~/ngx-modules-src/nginx-${VERSION}/
|
cd nginx-${VERSION}
|
||||||
|
|
||||||
# Compilation de ModSecurity & Header-More
|
# Compilation de ModSecurity & Header-More
|
||||||
./configure --with-compat --add-dynamic-module=../ModSecurity-nginx --add-dynamic-module=../ModSecurity-nginx
|
./configure --with-compat --add-dynamic-module=../ModSecurity-nginx --add-dynamic-module=../ModSecurity-nginx
|
||||||
@@ -64,4 +65,7 @@ Installation des modules
|
|||||||
------------------------
|
------------------------
|
||||||
```shell
|
```shell
|
||||||
sudo cp objs/*.so /etc/nginx/modules/
|
sudo cp objs/*.so /etc/nginx/modules/
|
||||||
|
|
||||||
|
# Retour au répertoire parent
|
||||||
|
cd -
|
||||||
```
|
```
|
||||||
|
|||||||
Reference in New Issue
Block a user