LinuxQuestions.org
LinuxAnswers - the LQ Linux tutorial section.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Debian
User Name
Password
Debian This forum is for the discussion of Debian Linux.

Notices

Reply
 
Search this Thread
Old 03-06-2013, 08:19 AM   #1
JJX
Member
 
Registered: Mar 2004
Location: Greece
Distribution: Debian
Posts: 339

Rep: Reputation: 31
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
 
Old 03-10-2013, 05:18 PM   #2
KinnowGrower
Member
 
Registered: May 2008
Location: Toronto
Distribution: Centos && Debian
Posts: 341

Rep: Reputation: 34
Code:
a2enmod evasive
Command will tell you if already enabled or not
 
Old 03-13-2013, 09:34 AM   #3
JJX
Member
 
Registered: Mar 2004
Location: Greece
Distribution: Debian
Posts: 339

Original Poster
Rep: Reputation: 31
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

Last edited by JJX; 03-13-2013 at 09:36 AM.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Where to Add mod_evasive configuration to Apache configuration file.? Unknown3r Linux - Newbie 1 11-04-2012 10:09 AM
Mod_evasive and iptables lavinya Linux - Security 1 12-08-2007 08:22 AM
Updating Apache & PHP on Debian debsys07 Linux - General 6 06-20-2007 05:01 PM
Updating Apache & PHP on Debian debsys07 Linux - Newbie 3 06-20-2007 01:24 AM
trouble with apache 1.3 & https & debian deuce868 Linux - Networking 0 11-20-2004 08:11 PM


All times are GMT -5. The time now is 01:42 PM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration