<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>Control WebPanel Wiki &#187; mod_limits</title>
	<atom:link href="https://wiki.centos-webpanel.com/tag/mod_limits/feed" rel="self" type="application/rss+xml" />
	<link>https://wiki.centos-webpanel.com</link>
	<description>CentOS WebPanel Wiki</description>
	<lastBuildDate>Wed, 12 Feb 2025 20:38:16 +0000</lastBuildDate>
	<language>en-US</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=4.1.1</generator>
	<item>
		<title>How to install mod_limits</title>
		<link>https://wiki.centos-webpanel.com/how-to-install-mod_limits</link>
		<comments>https://wiki.centos-webpanel.com/how-to-install-mod_limits#comments</comments>
		<pubDate>Wed, 28 Jun 2017 12:50:04 +0000</pubDate>
		<dc:creator><![CDATA[publisher]]></dc:creator>
				<category><![CDATA[Apache]]></category>
		<category><![CDATA[mod_limits]]></category>

		<guid isPermaLink="false">http://wiki.centos-webpanel.com/?p=798</guid>
		<description><![CDATA[How to install Apache mod_limits module on CentOS WebPanel? This apache module is aimed at protecting the web server during attacks. It provides a few, very usefull, functionalities: * Limit the maximum number of simultaneous connections * Limit the maximum number of simultaneous connections per Vhost * Limit the maximum number of spawned processes with [&#8230;]]]></description>
				<content:encoded><![CDATA[<p><strong>How to install Apache mod_limits module on CentOS WebPanel?</strong><br />
This apache module is aimed at protecting the web server during attacks.</p>
<p>It provides a few, very usefull, functionalities:</p>
<p> * Limit the maximum number of simultaneous connections<br />
 * Limit the maximum number of simultaneous connections per Vhost<br />
 * Limit the maximum number of spawned processes with the same UID<br />
 * Do not serve request if the load is over certain value</p>
<p><strong>Install development packages</strong></p>
<pre>yum install apr-devel apr-util-devel apr apr-util</pre>
<p><strong>Download and Install Apache mod_limits module </strong></p>
<pre>
cd /usr/local/src
wget https://github.com/hackman/mod_limits/archive/master.zip
unzip master.zip
cd mod_limits-master
/usr/local/apache/bin/apxs -a -i -c mod_limits.c</pre>
<p><strong>Add this configuration to file</strong>: /usr/local/apache/conf.d/mod_limits.conf</p>
<pre>LoadModule limits_module modules/mod_limits.so
&lt;IfModule mod_limits.c&gt;
    LimitMaxConnsPerVhost 20
    LimitMaxConnsPerUid 20
    LimitMaxConnsPerIP 80
    LimitMaxLoadAVG 10
    CheckLoadInterval 5
&lt;/IfModule&gt;
</pre>
<p>* Make custom changes based on the limits you want to have set.</p>
<div class="st-alert st-alert- ">
Please note that <strong>ExtendedStatus</strong> needs to be set to <strong>On</strong> in<br />
<strong>/usr/local/apache/conf/httpd.conf</strong>
</div>
<p>At the end restart apache to load new changes</p>
<pre>service httpd restart</pre>
<p><strong>Home page</strong><br />
<a href="https://github.com/hackman/mod_limits" title="Home Page mod_limits" target="_blank">https://github.com/hackman/mod_limits</a><br />
<em><br />
Last testing done with apache 2.4.26.</em></p>
]]></content:encoded>
			<wfw:commentRss>https://wiki.centos-webpanel.com/how-to-install-mod_limits/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
