Jeff Pang escribió:
2007/7/4, Emilio Casbas <ecasbas@xxxxxxx>:
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.