On Tue, Feb 19, 2008, Amos Jeffries wrote:

> > Is there a way to do this in 2.6?
> 
> Yes, with a little trickery in DNS. You need to use DNS-views so that the
> public see squid as being an A/AAAA for the domain and squid does not. If
> squid ever find itself as a source server for any of the domains its
> accelerating you get a forwarding-loop.

You can use /etc/hosts too; Squid will load that into memory on startup.

> Other than that catch; configure squid as a normal 2.6 accelerator with
> vhost and defaultsite on the http_port line, omit any cache_peer_*
> settings, and set as an open-proxy for the domains you are providing.
> An external acl helper may be needed to accurately limit the open-proxy
> behaviour to just the hosted domains.

Which is what I've done in the past; works quite well.e



Adrian

Reply via email to