The Community Forums

Interact with an entire community of cPanel & WHM users!
  1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Important changes on the server

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

  1. pacomt

    pacomt Registered

    Joined:
    Aug 8, 2010
    Messages:
    2
    Likes Received:
    0
    Trophy Points:
    1
    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

    Joined:
    Mar 4, 2005
    Messages:
    4
    Likes Received:
    0
    Trophy Points:
    1
  3. nilesh_kolte

    nilesh_kolte Well-Known Member

    Joined:
    Apr 13, 2006
    Messages:
    65
    Likes Received:
    0
    Trophy Points:
    6
    Location:
    Pune ,India
    cPanel Access Level:
    Root Administrator
    Hello,

    User following steps.


    1. cd /usr/src
    2. wget http://dominia.org/djao/limit/mod_limitipconn-0.22.tar.gz
    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>

    <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
    </Location>
    </IfModule>

    14. Save and close and restart httpd on server.
     
Loading...

Share This Page