Apache Security Script

walo

Verified User
Joined
Mar 19, 2005
Messages
162
The script will download and install mod_bandwidth, mod_load and mod_evasive for apache.

Version 0.5 beta

# wget http://www.ihserver.net/da/apache_security.sh

# chmod 700 apache_security.sh

# ./apache_security.sh


Follow the on-screen instructions, it's pretty easy.


Pleace report any bug or comment.

This are security mod for apache.
mod_bandwidth: limit the bandwidth usage with multiple configurations, per domain, pero ip, serverwide, max min, etc.

mod_load: Output a 503 error document when the load exceed a predefined value. This is useful to prevent server down.

mod_evasive: provide evasive action in the event of an HTTP DoS or DDoS attack or brute force attack.

After install you have all the explanations of the modules variables in /etc/httpd/conf/httpd_mods.conf

This script add a line al the bottom witch include the /etc/httpd/conf/httpd_mods.conf

if you have any problem starting httpd, remove this line.

Tested on Fedora 3 and CentOS 4.2
Work for Apache 1.3.x
 
Last edited:
CentOS 4.2 PHP 4.4.2 Apache 2.0.55 result = crashes apache

==EDIT==

Syntax error on line 16 of /etc/httpd/conf/httpd_mods.conf:
Invalid command 'BandWidth', perhaps mis-spelled or defined by a module not included in the server configuration
[FAILED]
 
Last edited:
Back
Top