首先Apache的版本是:2.4
mod_evasive的主页是:(现在的版本是:
mod_evasive_1.10.1.tar.gz)
根据READEME中的步骤:
APACHE v2.0
-----------
1. Extract this archive
2. Run $APACHE_ROOT/bin/apxs -i -a -c mod_evasive20.c
3. The module will be built and installed into $APACHE_ROOT/modules, and loaded into your httpd.conf
4. Restart Apache
-----------
1. Extract this archive
2. Run $APACHE_ROOT/bin/apxs -i -a -c mod_evasive20.c
3. The module will be built and installed into $APACHE_ROOT/modules, and loaded into your httpd.conf
4. Restart Apache
安装后出现以下错误:
error: 'conn_rec' has no member named 'remote_ip'
解决方法是:将remote_ip替换成client_ip.