Docunext


Squid3 Configuration Notes

December 15th, 2009

Here are a few Squid version 3 configuration notes I've take lately.

Starting Squid HTTP Proxy 3.0: squid32009/12/15 11:01:38| WARNING: '127.0.0.1' is a subnetwork of '127.0.0.1'
2009/12/15 11:01:38| WARNING: because of this '127.0.0.1' is ignored to keep splay tree searching predictable
2009/12/15 11:01:38| WARNING: You should probably remove '127.0.0.1' from the ACL named 'localhost'

To avoid this log warning, I've removed the localhost settings from the configuration. If I find any problems, I'll adjust it. UPDATE: Yes, this setting is required for accessing squid from the localhost. I changed 127.0.0.1 to 127.0.0.2 and its fine now. Its not the best fix, but it quiets squid3 a bit.

I also edited the negative ttl for http responses of "not found", and similar:

negative_ttl 10 seconds

It defaults to five minutes! That seems illogical to me, but perhaps that's what most systems use.

Yearly Indexes: 2003 2004 2006 2007 2008 2009 2010 2011 2012 2013 2015 2019 2020 2022