[squid-users] Re: cache_peer_domain wildcards?

From: Robin Bowes <robin-lists@dont-contact.us>
Date: Mon, 04 Dec 2006 18:20:01 +0000

Pablo García wrote:
> Robin
>
> You have to define the servers, url, domains, etc you're
> going to accelerate in the configuration using a combination of
> cache_peer + acl + cache_peer_access + never_direct
> Ej : you have to accelerate www.example.com that resides on 10.1.1.1,
> then your config should be like this
>
> http_port 80 defaultsite= www.example.com vhost
> cache_peer 10.1.1.1 parent 80 0 no-query originserver
> acl accel_host dstdomain .example.com
> cache_peer_access 10.1.1.1 allow accel_host
>
> acl all src 0.0.0.0/0.0.0.0
> never_direct deny all

OK, so my current config is:

http_port 172.28.28.20:80 vhost
cache_peer 172.28.28.40 parent 80 0 \
     no-query \
     no-digest \
     originserver \
     name=sites
cache_peer_domain sites sites.example.com

This would become:

http_port 172.28.28.20:80 vhost
cache_peer 172.28.28.40 parent 80 0 \
     no-query \
     no-digest \
     originserver \
     name=sites
acl accel_host dstdomain .sites.example.com
cache_peer_access 172.28.28.40 allow accel_host

What does the additional acl do? i.e. this:

> acl all src 0.0.0.0/0.0.0.0
> never_direct deny all

Thanks,

R.
Received on Mon Dec 04 2006 - 11:20:47 MST

This archive was generated by hypermail pre-2.1.9 : Mon Jan 01 2007 - 12:00:01 MST