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.

MRTG allowed for only 1 IP

Discussion in 'General Discussion' started by sh4ka, Oct 11, 2005.

  1. sh4ka

    sh4ka Well-Known Member

    Joined:
    May 12, 2005
    Messages:
    442
    Likes Received:
    0
    Trophy Points:
    16
    Location:
    US
    cPanel Access Level:
    DataCenter Provider
    I installed MRTG but everybody can see the graphs at IP/mrtg, does anybody know how to deny access to everybody, except my local IP ?
     
  2. sh4ka

    sh4ka Well-Known Member

    Joined:
    May 12, 2005
    Messages:
    442
    Likes Received:
    0
    Trophy Points:
    16
    Location:
    US
    cPanel Access Level:
    DataCenter Provider
    Added this to /usr/local/apache/conf/httpd.conf

    <Directory "/usr/local/apache/htdocs/mrtg/">
    order deny,allow
    allow from [SERVER IP]
    allow from [MY LOCAL IP]
    deny from all
    </Directory>

    And all done ;)
     
Loading...

Share This Page