Trang

Thứ Tư, 6 tháng 4, 2011

Installation Mod Security on Kloxo (CentOS5)

1. Validate the packages by installing the GPG key:
rpm --import http://www.jasonlitka.com/media/RPM-GPG-KEY-jlitka
2. Add the following to your '/etc/sysconfig/rhn/sources' file:
yum utterramblings http://www.jasonlitka.com/media/EL5/$ARCH
3. Create new file :
vi /etc/yum.repos.d/utterramblings.repo
... and then paste the following into the editor:
[utterramblings]
name=Jason's Utter Ramblings Repo
baseurl=http://www.jasonlitka.com/media/EL$releasever/$basearch/
enabled=1
gpgcheck=1
gpgkey=http://www.jasonlitka.com/media/RPM-GPG-KEY-jlitka
4. Install modsecurity by typing: 
yum install mod_security
5. Restart the Apache webserver:
service httpd restart
All done!
 
 
 
 
 
Note that a default ruleset is included and activated during the installation. If you want to edit the configuration, the following can be useful:

/etc/httpd/conf.d: all files in this directory are loaded during Apache startup.
/etc/httpd/conf.d/mod_security.conf: default configuration loading the mod_security module and the default rule set.
/etc/httpd/modsecurity.d: default rule set.

0 nhận xét:

Đăng nhận xét