Adding mod_evasive to custombuild/apache

Shira

Verified User
Joined
Jul 5, 2020
Messages
18
I have installed mod_evasive to my server but every time custombuild has an update it gets removed. How should I add the module to be included when this happens?

I have read this guide https://help.directadmin.com/item.php?id=191 but how should I write the --with line in configure.apache? the module file is in /opt/mod_evasive-master/mod_evasive24.c

Thanks
 
I load extra external Apache modules via the /etc/httpd/conf/extra/httpd.includes.conf file, in the Apache configuration directory. Have never had a problem with upgrades, the file stays unchanged.
 
I load extra external Apache modules via the /etc/httpd/conf/extra/httpd.includes.conf file, in the Apache configuration directory. Have never had a problem with upgrades, the file stays unchanged.
Just move this from httpd.conf to the includes file?

#LoadModule dummy_module /usr/lib/apache/mod_dummy.so
LoadModule evasive20_module /usr/lib/apache/mod_evasive24.so
Include /etc/httpd/conf/extra/httpd-phpmodules.conf

<IfModule mod_evasive24.c>
DOSHashTableSize 3097
DOSPageCount 10
DOSSiteCount 100
DOSPageInterval 3
DOSSiteInterval 2
DOSBlockingPeriod 60
DOSEmailNotify <>
DOSLogDir "/misc/mod_evasive.log"
</IfModule>

Thanks
 
I tried my best but I can't get it installed?

Could you please tell me how you installed mod_evasive?

I searched the forum but didn't find a uptodate How-To.

Thanks
 
Yes I tried epel too, but it did't work

So this is what you did?



APACHE v2.4
Extract this archive

Run $APACHE_ROOT/bin/apxs -i -a -c mod_evasive24.c

The module will be built and installed into $APACHE_ROOT/modules, and loaded into your httpd.conf

Restart Apache
 
Yes I tried epel too, but it did't work

So this is what you did?



APACHE v2.4
Extract this archive

Run $APACHE_ROOT/bin/apxs -i -a -c mod_evasive24.c

The module will be built and installed into $APACHE_ROOT/modules, and loaded into your httpd.conf

Restart Apache
yes, then adjust a bit the settings in http.conf, by default it's too aggressive
 
Back
Top