Many times there will be boring people, or your website is very popular, and you do not want each user to open a lot of connections at the same time.
This article describes a method to limit the number of connections of each user.
This article is based on Centos4/Redhat:
Install the official website mod_limitipconn:Http://dominia.org/djao/limitipconn2.html
Centos4/Redhat has an rpm package, which is easy to install. (Mod_limitipconn limits the number of ip connections)
Installation Method:
Rpm-ivh mod_limitipconn-0.23-4.el4.i386.rpm
Check the installation location:
Configuration method:
Vim httpd. conf
The changes are as follows:
ExtendedStatus On
Add a new module
LoadModule limitipconn_module modules/mod_limitipconn.so
<IfModule mod_limitipconn.c>
<Location/>
MaxConnPerIP 15 ### limit that each ip Address can have up to 15 links
</Location>
</IfModule>
For more information, see
/Usr/share/doc/mod_limitipconn-0.23/README
For how to install the source code, see the Help file on the official website.