Re: [squid-users] Setting up squid to use the same cache for different hostnames

From: Henrik Nordstrom <henrik@dont-contact.us>
Date: Tue, 27 Mar 2007 21:20:39 +0200

tis 2007-03-27 klockan 10:40 +0200 skrev Ehud Shabtai:

> For example, in my current setup for these two requests:
> http://a.host.com/t.cgi
> http://b.host.com/t.cgi
>
> Squid would generate a cache entry for each request where I'd like it
> to use the same cache for both.
>
> Is there a setup option to allow sharing the cache?

If you only use the defaultsite= option to http_port and not vhost then
Squid will process all requests as requests for that single site.

Alternatively you can use a url_rewriter_program to unify the URLs. This
helper is called before the cache lookup.

Regards
Henrik

Received on Tue Mar 27 2007 - 13:20:44 MDT

This archive was generated by hypermail pre-2.1.9 : Sat Mar 31 2007 - 13:00:02 MDT