Re: [squid-users] Help with URL redirect

From: Henrik Nordstrom <henrik_at_henriknordstrom.net>
Date: Sat, 04 Oct 2008 16:00:46 +0200

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

Received on Sat Oct 04 2008 - 14:00:58 MDT

This archive was generated by hypermail 2.2.0 : Sat Oct 04 2008 - 12:00:01 MDT