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.

Reply via email to