<?xml version="1.0" encoding="UTF-8" ?>
<rss version="2.0">
<channel>
<title><![CDATA[Heck's  Blog]]></title> 
<link>https://www.heckjj.com/index.php</link> 
<description><![CDATA[一瞬间的决定，往往可以改变很多，事实上，让自己成功的往往不是知识，是精神！ 如果你总是为自己找借口，那只好让成功推迟。执行力，今天！]]></description> 
<language>zh-cn</language> 
<copyright><![CDATA[Heck's  Blog]]></copyright>
<item>
<link>https://www.heckjj.com/linux-setup-apache-mod-security-httpd-safety/</link>
<title><![CDATA[在Linux上安装mod_security]]></title> 
<author>Heck &lt;@hecks.tk&gt;</author>
<category><![CDATA[电脑技术]]></category>
<pubDate>Tue, 21 Sep 2010 06:58:03 +0000</pubDate> 
<guid>https://www.heckjj.com/linux-setup-apache-mod-security-httpd-safety/</guid> 
<description>
<![CDATA[ 
	&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <span style="font-family: 微软雅黑;">在使用apache的httpd服务器时，安全是你不得不考虑的一个问题。<a href="http://www.modsecurity.org/" target="_blank">mod_security</a>是为apache httpd服务器(1.x和2.x）设计的一个安全模块，mod_security可以阻止多种形式的攻击，比如SQL注入，跨站点脚本等等。这篇文章说明了如何在各种Linux上安装mod_security:<br/><br/><span style="font-size: 14px;"><strong><span style="color: #4169E1;">RHEL / CentOS</span></strong></span><br/><br/>在CentOS / RHEL上安装mod_security，最简单的办法就是使用yum进行自动更新。首先需要新建一个更新的yum repository:<br/><br/>vi /etc/yum.repos.d/utterramblings.repo<br/><br/>在这个文件中加入以下内容：</span><br/><textarea name="code" class="python" rows="15" cols="100">
[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
</textarea><span style="font-family: 微软雅黑;"><br/>之后用yum进行自动更新：<br/><br/>yum install mod_security<br/><br/>然后重启httpd<br/><br/>service httpd restart<br/><br/>注意如果httpd的版本不对的话这里可能会出现一些错误。这个时候你需要更新apache的版本：<br/><br/>yum update httpd<br/><br/>然后再重启httpd就可以了<br/><br/><span style="font-size: 14px;"><strong><span style="color: #4169E1;">Fedora</span></strong></span><br/><br/>对于Fedora只需要使用yum进行安装就可以了：<br/><br/>yum install mod_security<br/><br/>yum update httpd<br/><br/>之后<br/><br/>service httpd restart<br/><br/><span style="font-size: 14px;"><strong><span style="color: #4169E1;">Debian / Ubuntu</span></strong></span><br/><br/>对于Debian或者Ubuntu，可以使用以下命令进行安装：</span><br/><br/><textarea name="code" class="python" rows="15" cols="100">apt-get install libapache2-mod-security
a2enmod mod-security
/etc/init.d/apache2 force-reload</textarea><br/>Tags - <a href="https://www.heckjj.com/tags/apache/" rel="tag">apache</a> , <a href="https://www.heckjj.com/tags/mod_security/" rel="tag">mod security</a> , <a href="https://www.heckjj.com/tags/httpd/" rel="tag">httpd</a> , <a href="https://www.heckjj.com/tags/%25E5%25AE%2589%25E5%2585%25A8/" rel="tag">安全</a>
]]>
</description>
</item><item>
<link>https://www.heckjj.com/linux-setup-apache-mod-security-httpd-safety/#blogcomment</link>
<title><![CDATA[[评论] 在Linux上安装mod_security]]></title> 
<author> &lt;user@domain.com&gt;</author>
<category><![CDATA[评论]]></category>
<pubDate>Thu, 01 Jan 1970 00:00:00 +0000</pubDate> 
<guid>https://www.heckjj.com/linux-setup-apache-mod-security-httpd-safety/#blogcomment</guid> 
<description>
<![CDATA[ 
	
]]>
</description>
</item>
</channel>
</rss>