Hua Su wrote:
Hi all,
I need to setup a http proxy for all web sites,

Okay...  That's what Squid does.

 but only a dozen of predefined web sites should be cached,

Okay...  http://www.squid-cache.org/Doc/config/cache/

 and each sites has its own cache quota.

Uhhh... You mean you only want to allocate a specific amount of the cache for each site? One Squid instance can't do that. It would be possible to have one dedicated Squid instance per site-to-cache, each with a cache_dir set to the quota for that site, and a front-end child process that directs the traffic to the proper dedicated instance... Something like http://wiki.squid-cache.org/ConfigExamples/MultiCpuSystem, but I'd recommend avoiding that route.

 Would you kindly give me an example of squid.conf?

Thanks in advance!

--
Hua

Chris

Reply via email to