Re: [squid-users] localhost

From: CD Tech <cdtech20059@dont-contact.us>
Date: Sat, 16 Feb 2008 08:20:05 -0500

thank you. I have done some research on your suggest and have modifed
my pac file to look like this and it works now.

function FindProxyForURL(url, host)
{

if (shExpMatch(url, "http://localhost*")) {
return "DIRECT";
}
if (shExpMatch(url, "http://127.0.0.1*")) {
return "DIRECT";
}

if (isInNet(myIpAddress(), "192.168.65.0", "255.255.255.0"))
return "PROXY 192.168.65.13:3128; DIRECT";
else
return "DIRECT";
}

On Feb 16, 2008 1:25 AM, Amos Jeffries <squid3@treenet.co.nz> wrote:
> CD Tech wrote:
> > Hello all,
> >
> > Squid Cache: Version 2.6.STABLE17
> > Fedora 8
> >
> > I have setup squid 2 days ago and have learned a ton already. I have
> > everything pretty much prefect except one lingering issue. Myself and
> > clients can not connect to our localhost. For example I can not
> > connect to my local server using http://localhost or 127.0.0.1 or
> > google desktop using http://127.0.0.1:4664 and for the life of me can
> > not figure it out. When I type in locahost or 127.0.01 it brings me
> > to the apache page on the squid server.
>
> Of course. Squid is running on its own 'localhost' separate from each of
> the clients.
>
> >
> > Since I am using a .pac file I can not bypass localhost or 127.0.0.1
> > in firefox or IE (although that does fix the issue). Any work around
> > to this? Below is my pac file and
>
> Wrong. Simply have the .pac file check for a request url of
> "http://localhost" and go DIRECT on them.
>
>
> Amos
> --
> Please use Squid 2.6STABLE17+ or 3.0STABLE1+
> There are serious security advisories out on all earlier releases.
>
Received on Sat Feb 16 2008 - 06:20:09 MST

This archive was generated by hypermail pre-2.1.9 : Sat Mar 01 2008 - 12:00:05 MST