Re: [squid-users] Different scenarios in a reverse proxy environment

From: Emilio Casbas <ecasbas@dont-contact.us>
Date: Thu, 05 Jul 2007 16:33:48 +0200

Jeff Pang escribió:
> 2007/7/4, Emilio Casbas <ecasbas@unav.es>:
>> But what about
>>
>> - Different requests to different directorys on the same web server.
>> - Mapping different URLs to different directorys on the same web server.
>>
>
> This is based on original server's virtual hosts config,squid just
> take the common setting for reverse proxy,like,
>
> cache_peer 12.34.56.78 parent 80 0 no-query originserver
> name=CCTV
> acl service_icctv dstdomain d1.cctv.com
> cache_peer_access CCTV allow service_icctv
>
> acl service_wcctv dstdomain d2.cctv.com
> cache_peer_access CCTV allow service_wcctv
>
> acl service_lcctv dstdomain d3.cctv.com
> cache_peer_access CCTV allow service_lcctv
>

I think this example would be redundant, We could achive the same
objective with:

cache_peer 12.34.56.78 parent 80 0 no-query originserver
name=CCTV

acl service_cctv dstdomain .cctv.com
cache_peer_access CCTV allow service_cctv

Various cache_peer_access will have sense with different cache_peer
or with different permission.

Thanks
Emilio C.
Received on Thu Jul 05 2007 - 08:34:03 MDT

This archive was generated by hypermail pre-2.1.9 : Wed Aug 01 2007 - 12:00:03 MDT