Results 1 to 10 of 15
Threaded View
-
5th Nov 2011, 02:32 PM #1
Apache 2.2.x security tricks (CentOS)
- Install httpd-devel and gcc:
Code:yum install httpd-devel gcc
- Download this modules (you'll need the .c files)
mod_allowmethods: http://www.apachelounge.com/viewtopic.php?t=4238
mod_antiloris: http://www.apachelounge.com/viewtopic.php?t=4222
mod_reqtimeout: https://github.com/apache/httpd/blob...d_reqtimeout.c - Upload those files to your server (secure ftp via ssh port should be a good way to do so).
- Build and install the modules
Code:apxs -cia mod_allowmethods.c apxs -cia mod_antiloris.c apxs -cia mod_reqtimeout.c
- Configure it
Go to /etc/httpd/conf.d and add a file named 3rdparty.conf with:
Code:TraceEnable Off <Directory /> LimitRequestBody 8388608 <IfModule allowmethods_module> AllowMethods GET HEAD OPTIONS POST </IfModule> </Directory> <IfModule antiloris_module> IPReadLimit 20 </IfModule> <IfModule reqtimeout_module> RequestReadTimeout header=20-40,MinRate=500 body=20,MinRate=500 </IfModule>
Enjoy
If running cPanel you have to run after installing the module:
Code:/usr/local/cpanel/bin/apache_conf_distiller --update
NewEraCracker Reviewed by NewEraCracker on . Apache 2.2.x security tricks (CentOS) Install httpd-devel and gcc: yum install httpd-devel gcc Download this modules (you'll need the .c files) mod_allowmethods: http://www.apachelounge.com/viewtopic.php?t=4238 mod_antiloris: http://www.apachelounge.com/viewtopic.php?t=4222 mod_reqtimeout: https://github.com/apache/httpd/blob/2.2.x/modules/filters/mod_reqtimeout.c Upload those files to your server (secure ftp via ssh port should be a good way to do so). Rating: 5Trusted: Dom, l0calh0st, 0ccul7, robert420
Find all threads started by NewEraCracker
- Install httpd-devel and gcc:
Sponsored Links
Thread Information
Users Browsing this Thread
There are currently 1 users browsing this thread. (0 members and 1 guests)
Similar Threads
-
CentOS Apache Help
By feronso in forum Server ManagementReplies: 3Last Post: 30th May 2012, 08:47 PM -
How to put Varnish in front of Apache on CentOS?
By AlternativeWeb in forum Server ManagementReplies: 4Last Post: 24th May 2012, 05:04 PM -
How To Install Apache with MySQL and PHP on Linux CentOS
By enetcloud in forum Tutorials and GuidesReplies: 3Last Post: 21st Aug 2011, 01:11 PM -
How do i uninstall apache on Centos 5?
By RNBxBeatz in forum Webmaster DiscussionReplies: 3Last Post: 22nd Apr 2011, 02:44 PM -
Linux Hardening & Security[cP/WHM + Apache]
By Krun!x in forum Technical and Security TutorialsReplies: 5Last Post: 22nd Jul 2009, 01:05 AM
themaCreator - create posts from...
Version 3.23 released. Open older version (or...