In Linux, Apache uses the Mod_limitipconn module to limit concurrency

Source: Internet
Author: User
Tags bz2

Mod_limitipconn module Download

Http://dominia.org/djao/limitipconn2.html

Installation of Linux Environment

If you need to install Mod_limitipconn manually, please follow the instructions below. The following instructions are primarily applied to the Apache 2.2.9, but it also supports any later versions of Apache.

Mod_limitipconn instructions for compiling to httpd

Tar xzvf httpd-2.2.9.tar.gz
Tar xjvf mod_limitipconn-0.23.tar.bz2
CD httpd-2.2.9
./configure--with-module=aaa:. /mod_limitipconn-0.23/mod_limitipconn.c
Make
Make install

To establish a dynamic shared object (DSO) Description:

Tar xjvf mod_limitipconn-0.23.tar.bz2
CD mod_limitipconn-0.23
Make install

Installation of Windows environment

Download the appropriate version of the module file to the Apache installation directory under the modules directory, and then search in the httpd.conf file:

#LoadModule Status_module modules/mod_status.so

Remove the # in front of it and add:

Extendedstatus on
LoadModule Limitipconn_module Modules/mod_limitipconn.dll

If you are not downloading the win version, please change the filename to the file name you downloaded


# This represents a limit to the root directory, that is, all restrictions, can be modified as needed
Maxconnperip 2 # This represents up to two threads at a time
Nolimit html/* # This indicates that the HTML directory is unrestricted

This allows more than 2 thread requests from the same client to be rejected, limiting the client's multithreaded downloads

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.