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.

problem with Squid

Discussion in 'General Discussion' started by nick1, May 4, 2008.

  1. nick1

    nick1 Member

    Joined:
    May 21, 2006
    Messages:
    24
    Likes Received:
    0
    Trophy Points:
    1
    Hello,

    I had installed Proxy software (Squid) today and I've problem now.

    When I'm using different IP to see how it works but It's only show the primary IP, I'm using curl.

    The code I'm using are:

    Code:
     $ch = curl_init();
    curl_setopt($ch, CURLOPT_PROXY, "xxx.xxx.xxx.xxx:8080");
    curl_setopt($ch, CURLOPT_URL,"http://myip.dk");
    curl_setopt($ch, CURLOPT_REFERER, "");
    curl_setopt($ch, CURLOPT_HEADER, 1);
    curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
    curl_setopt($ch, CURLOPT_FOLLOWLOCATION, 1);
    $html = curl_exec($ch);
    
    curl_close ($ch);
    
    print $html;
    
    Any idea, how can squid read all my server IPs.

    Thanks
     
Loading...

Share This Page