LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Debian (https://www.linuxquestions.org/questions/debian-26/)
-   -   Debian apache & mod_evasive (https://www.linuxquestions.org/questions/debian-26/debian-apache-and-mod_evasive-4175452953/)

JJX 03-06-2013 08:19 AM

Debian apache & mod_evasive
 
Hello all

I try to enable mod_evasive to debian 6.0.7.
After installing I try to configure as follows

Quote:

testpc:/etc/apache2/mods-enabled# cat mod-evasive.load
LoadModule evasive20_module /usr/lib/apache2/modules/mod_evasive20.so

<IfModule mod_evasive20.c>
DOSHashTableSize 3097
DOSPageCount 5
DOSSiteCount 50
DOSPageInterval 1
DOSSiteInterval 1
DOSBlockingPeriod 60
DOSLogDir /var/log/apache2/evasive2
</IfModule>

testpc:/var/log/apache2# php -r 'phpinfo();' | grep -i evasive
testpc:/var/log/apache2#
The module doesn't seem to be loaded.
Also after creating a few hundreds fake connections to the Apache, it doesn't seem to block any connections or create any logs...

Am I doing something wrong ?

Thank you

KinnowGrower 03-10-2013 05:18 PM

Code:

a2enmod evasive
Command will tell you if already enabled or not

JJX 03-13-2013 09:34 AM

Quote:

# a2enmod evasive
ERROR: Module evasive does not exist!
# a2enmod mod-evasive
Module mod-evasive already enabled
and:
Quote:

# apache2ctl -t -D DUMP_MODULES
apache2: Could not reliably determine the server's fully qualified domain name, using 127.0.1.1 for ServerName
[Wed Mar 13 16:21:58 2013] [warn] NameVirtualHost *:80 has no VirtualHosts
Loaded Modules:
core_module (static)
log_config_module (static)
logio_module (static)
mpm_prefork_module (static)
http_module (static)
so_module (static)
alias_module (shared)
auth_basic_module (shared)
authn_file_module (shared)
authz_default_module (shared)
authz_groupfile_module (shared)
authz_host_module (shared)
authz_user_module (shared)
autoindex_module (shared)
cgi_module (shared)
deflate_module (shared)
dir_module (shared)
env_module (shared)
mime_module (shared)
evasive20_module (shared)
negotiation_module (shared)
php5_module (shared)
reqtimeout_module (shared)
setenvif_module (shared)
status_module (shared)
Syntax OK


All times are GMT -5. The time now is 04:13 PM.