erohas
Verified User
Download Httpd Source for special.mk (Build)
Than copy "Configure" options in "/usr/local/directadmin/customapache/configure.ap_2"
and run
than get latest modsecurity source
Edit Makefile
and replace
than run make
now edit httpd.conf
and insert the following
then:
that howto works for me!
and finally edit conf files in /etc/httpd/conf/modsec for your needs
Russian translation located here
Code:
wget http://apache.ziply.com/httpd/httpd-2.0.61.tar.bz2
tar jxvf httpd-2.0.61.tar.bz2
cd httpd-2.0.61
and run
Code:
./configure <<<copied options>>>
make
cd ..
Code:
wget http://www.modsecurity.org/download/modsecurity-apache_2.1.4.tar.gz
tar zxvf modsecurity-apache_2.1.4.tar.gz
cd modsecurity-apache_2.1.4
Code:
cd apache2/
vi Makefile
Code:
top_dir = ../../httpd-2.0.61
INCLUDES = -I /usr/include/libxml2 -I ../../httpd-2.0.61/srclib/pcre
Code:
make && make install
Code:
vi /etc/httpd/conf/httpd.conf
Code:
LoadFile /usr/lib/libxml2.so
LoadModule security2_module /usr/lib/apache/mod_security2.so
<IfModule mod_security2.c>
Include conf/modsec/*.conf
</IfModule>
Code:
mkdir /etc/httpd/conf/modsec
cd /etc/httpd/conf/modsec
wget http://www.modsecurity.org/download/modsecurity-core-rules_2.1-1.5.1.tar.gz
tar zxvf modsecurity-core-rules_2.1-1.5.1.tar.gz
/etc/init.d/httpd restart
that howto works for me!
and finally edit conf files in /etc/httpd/conf/modsec for your needs
Russian translation located here
Last edited: