Compare commits
2 Commits
86d64033e4
...
e08ef34c29
| Author | SHA1 | Date | |
|---|---|---|---|
| e08ef34c29 | |||
|
|
ae7f823fdf |
@@ -5,11 +5,13 @@ Installation de divers modules dynamiques avec Nginx
|
|||||||
cd ~/ngx-modules-src/
|
cd ~/ngx-modules-src/
|
||||||
|
|
||||||
# Copie de la version de Nginx - VERSION
|
# Copie de la version de Nginx - VERSION
|
||||||
sudo nginx -v
|
command="nginx -v"
|
||||||
|
nginxv=$( ${command} 2>&1 )
|
||||||
|
VERSION=$(echo $nginxv | grep -o '[0-9.]*$')
|
||||||
|
|
||||||
# récupération des sources de Nginx et décompression
|
# récupération des sources de Nginx et décompression
|
||||||
wget http://nginx.org/download/nginx-VERSION.tar.gz
|
wget http://nginx.org/download/nginx-${VERSION}.tar.gz
|
||||||
tar -xzvf nginx-VERSION.tar.gz
|
tar -xzvf nginx-${VERSION}.tar.gz
|
||||||
|
|
||||||
# Récupération des modules
|
# Récupération des modules
|
||||||
git clone --depth 1 -b v3/master --single-branch https://github.com/SpiderLabs/ModSecurity
|
git clone --depth 1 -b v3/master --single-branch https://github.com/SpiderLabs/ModSecurity
|
||||||
@@ -26,7 +28,7 @@ git submodule update
|
|||||||
make
|
make
|
||||||
sudo make install
|
sudo make install
|
||||||
|
|
||||||
cd ~/ngx-modules-src/nginx-VERSION/
|
cd ~/ngx-modules-src/nginx-${VERSION}/
|
||||||
|
|
||||||
# Installation de ModSecurity & Header-More (Modules Nginx)
|
# Installation de ModSecurity & Header-More (Modules Nginx)
|
||||||
./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
|
||||||
|
|||||||
Reference in New Issue
Block a user