m�n 2003-04-07 klockan 11.49 skrev Mauro:
> Hallo.
> I have a lan with about 1000 clients.
> I use an automatic configuration script like this:
> function FindProxyForURL(url, host)
> {
> if (isPlainHostName(host) ||
> dnsDomainIs(host, ".mydomain.it"))
> return "DIRECT";
> else
> return "PROXY w3proxy.netscape.com:8080; DIRECT";
> }
>
> to connect directly to local host and to use proxy for internet.
> With the command
> sort -r -n +4 -5 /var/log/squid/access.log | awk '{print $5, $7}' | head -25
> I see some contents of my cache and I see
> http://192.168.2.232/cgi-bin/search_dip.cgi
> http://192.168.5.5/i8.gif
> and so on.
> But.....192.168.2.232 and 192.168.5.5 are local hosts, so why squid has cached
> them?
Because your pac script only knows about domains, not networks..
> And why squid has cached the cgi search_dip?
Does it?
The fact that it is shown in access.log only says that it was proxied
via Squid, not if it was cached.. To tell if it was cached you need to
look into the status column. If it is a TCP_HIT then it was a cache
hit..
-- Henrik Nordstrom <hno@squid-cache.org> MARA Systems AB, SwedenReceived on Mon Apr 07 2003 - 06:09:48 MDT
This archive was generated by hypermail pre-2.1.9 : Tue Dec 09 2003 - 17:14:44 MST