Re: [squid-users] Squid Reverse Proxy help

From: Amos Jeffries <squid3_at_treenet.co.nz>
Date: Tue, 20 Oct 2009 13:04:11 +1300

On Mon, 19 Oct 2009 11:23:58 -0400, "Jones, Keven" <Keven.Jones_at_ncr.com>
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
Received on Tue Oct 20 2009 - 00:04:15 MDT

This archive was generated by hypermail 2.2.0 : Tue Oct 20 2009 - 12:00:03 MDT