Thank you Amos! That was it and I'm finally up and running. 

-----Original Message-----
From: Amos Jeffries [mailto:[email protected]] 
Sent: Monday, October 19, 2009 8:04 PM
To: Jones, Keven
Cc: [email protected]
Subject: Re: [squid-users] Squid Reverse Proxy help

On Mon, 19 Oct 2009 11:23:58 -0400, "Jones, Keven" <[email protected]>
wrote:
> Need help with finalizing my config. This config is not working for 
> the 2nd server. Can Anyone see what I'm missing or have configured 
> incorreclty.
> 
>  img01.cprpt.com is caching but img02.cprpt.com will not. I had
orginiall
>  forgotten the
>  2nd cache_peer_access server_2 allow sites_server2 but this has been  
> added and still  not working.
> 
> This url should work as the images and directories exist:
> 
> http://img02.cprpt.com/img/bvt/10002/ncrLogo_100909.gif
> 
> 
> Thanks for looking at this for me!
> 
> ---------------------------
> Squid.conf:
> 
> 
> http_port 80 accel defaultsite=img01.cprpt.com

For multiple domains (virtual hosting) the "vhost" option is required here.
Without it squid will assume everything is under the defaultsite.

> cache_peer 172.19.23.91 parent 80 0 no-query originserver name=myAccel 
> cache_peer 172.19.23.92 parent 80 0 no-query originserver 
> name=server_2
> 
> acl all src 0.0.0.0/0.0.0.0
> acl our_sites dstdomain img01.cprpt.com acl sites_server_2 dstdomain 
> img02.cprpt.com
> 
> http_access allow our_sites
> http_access allow sites_server_2
> 
> cache_peer_access myAccel allow our_sites cache_peer_access server_2 
> allow sites_server_2
> 
> cache_peer_access myAccel deny all
> cache_peer_access server_2 deny all
> 
> 
> visible_hostname bv-ic01
> 
> cache_dir ufs /data/spool/squid 100 16 256
> 
> cache_access_log /data/log/squid/access.log
> 
> cache_log /data/log/squid/cache.log
> 
> cache_store_log /data/log/squid/store.log

Reply via email to