Apache uses the Mod_limitipconn module to restrict client-side multi-threaded downloads

Source: Internet
Author: User

Because the website several times by the person to make the concurrency to cross, so Baidu has a bunch of methods. One of these is the ability to limit the amount of IP access to Apache. Large concurrent access to the same IP is not allowed.

Mounting module

Yum Install mod_limitipconn.x86_64-y

Configuration file

# ll/etc/httpd/conf.d/1475   limitipconn.conf

The following settings can be made directly within the website

# vim/etc/httpd/conf/httpd.conf ... 192.168. 0.1:>/var/www/htmlservername www.myweb.com<ifmodule mod_ limitipconn.c>    <location/> # This means limiting the root directory, which is the full limit, which       can be modified as needed 2  # here represents up to two threads at a time       NoLimit HTML /* # This means that the HTML directory is not restricted     </location></ifmodule>

Apache uses the Mod_limitipconn module to restrict client-side multi-threaded 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.