Re: [squid-users] Rewrite url and reverse proxy

From: Henrik Nordström <henrik_at_henriknordstrom.net>
Date: Mon, 02 Aug 2010 21:11:30 +0200

mån 2010-08-02 klockan 15:45 +0530 skrev senthilkumaar2021:
> Hi All,
>
> I am using squid as reverse proxy.i have three identical web
> servers.(content in each web server is same)
> the ip's are 172.16.1.48,172.16.1.49,172.16.1.50
> I used url rewrite perl script to redirect requests from
> other.example.com to redirect as squid.example.com.

> How to configure cache_peer so that redirected requests are passed to
> 172.16.1.49 ip and the direct requests to 172.16.1.49 and 172.16.1.50

Not entirely sure what you mean by redirected or direct requests.

If you have three identical web servers then set up three cache_peer
lines, one for each server, and use peer selection algorithms such as
round-robin to decide which server gets the request. Do not use URL
rewriters to rewrite the URL.

Regards
Henrik
Received on Mon Aug 02 2010 - 19:11:34 MDT

This archive was generated by hypermail 2.2.0 : Tue Aug 03 2010 - 12:00:02 MDT