On lör, 2008-10-04 at 21:29 +0800, Roy M. wrote: > Hello, > > Consider I have two domains, e.g. example.com and example.net > > What I want is to extract a portion from the URL, and dynamic set the > backed servers... > > E.g. > > http://apple.1.example.net => http://apple.example.com > http://apple.2.example.net => http://apple.example.com > ... > > http://zebra.1.example.net => http://zebra.example.com > http://zebra.2.example.net => http://zebra.example.com > The number is limited from [1-9], and the subdomains are dynamic. > Is it possible to set this without using external redirector? Yes. See cache_peer_access directive and dstdomain_regex acl type. http://wiki.squid-cache.org/SquidFaq/ReverseProxy#head-7bd155a1a9919bda8ff10ca7d3831458866b72eb Regards Henri
Attachment:
signature.asc
Description: This is a digitally signed message part