Step 1: Download the mod_security binaries
https://github.com/SpiderLabs/ModSecurity/releases/download/v2.9.1/modsecurity-2.9.1.tar.gz
Step 2: tar -zxvf modsecurity-2.9.1.tar.gz
Step 3: cd modsecurity-2.9.1
Step
4: Run below commands:
make
make install
LoadModule unique_id_module
modules/mod_unique_id.so
LoadModule security2_module
modules/mod_security2.so
Header unset Server
Header unset Etag
ServerTokens Prod
ServerSignature off
Header always unset
"X-Powered-By"
Header unset
"X-Powered-By"
<IfModule security2_module>
SecRuleEngine Off
ServerTokens Full
SecServerSignature " "
</IfModule>
#########################################
How to install opensource mod_security on Apahce 2.4
No comments:
Post a Comment