Please whitelist cPanel in your adblocker so that you’re able to see our version release promotions, thanks!

The Community Forums

Interact with an entire community of cPanel & WHM users!

Important changes on the server

Discussion in 'General Discussion' started by pacomt, Aug 8, 2010.

  1. pacomt

    pacomt Registered

    Aug 8, 2010
    Likes Received:
    Trophy Points:
    Hellow Everyone

    I have two question about how to config http.conf using CPanel.

    I have to change Maxclient value to 500 but using Cpanel i cant put more that 256. So i did it using putty and i put Server Limit 500 and Maxclient 500. How i can do it using Cpanel.

    The second question is How i can limit the number os simultaneous Ip Donwloads on my webpage. I have a lot of download content on my server and i want tu limit the max number of conections per Ip to 5.

    How i can do that by using Cpanel?
  2. rkj

    rkj Registered

    Mar 4, 2005
    Likes Received:
    Trophy Points:
  3. nilesh_kolte

    nilesh_kolte Well-Known Member

    Apr 13, 2006
    Likes Received:
    Trophy Points:
    Pune ,India
    cPanel Access Level:
    Root Administrator

    User following steps.

    1. cd /usr/src
    2. wget
    3. tar -xzvf mod_limitipconn-0.22.tar.gz
    4. cd mod_limitipconn-0.22
    5. nano Makefile
    6. Search for APXS= and change it to APXS=/usr/local/apache/bin/apxs
    7. Save the file
    8. make and make install
    9. service httpd configtest
    10. server httpd restart
    11. nano /usr/local/apache/conf/httpd.conf
    12. Locate ExtendedStatus, Uncomment it
    13. Add following

    IfModule mod_limitipconn.c>
    <Location /somewhere>
    MaxConnPerIP 3
    # exempting images from the connection limit is often a good
    # idea if your web page has lots of inline images, since these
    # pages often generate a flurry of concurrent image requests
    NoIPLimit image/*

    <Location /mp3>
    MaxConnPerIP 1
    # In this case, all MIME types other than audio/mpeg and video*
    # are exempt from the limit check
    OnlyIPLimit audio/mpeg video

    14. Save and close and restart httpd on server.
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...

Share This Page

  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice