说明:
操作系统:CentOS
Nginx安装目录:/usr/local/nginx
需求:增加Modsecurity模块,实现Nginx服务器Web应用防护系统
开始操作:
一、安装ModSecurity
cd /usr/local/src
wget https://www.modsecurity.org/tarball/2.9.1/modsecurity-2.9.1.tar.gz #下载软件
yum install httpd-devel #modsecurity安装需要APXS包,APXS在httpd-devel中
cd /usr/local/src
tar zxvf modsecurity-2.9.1.tar.gz
cd modsecurity-2.9.1
./autogen.sh
./configure --enable-standalone-module --disable-mlogc
make
安装过程...
阅读全文