Search squid archive

Re: Rewrite url and reverse proxy

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Thank you very much

Here is my setup

I have three web servers running at three different ip's (content in that are same) the server name is squid.example.com and squid is running as reverse proxy.
Three web server ip's are 172.16.1.48,172.16.1.49.172.16.1.50.

I used perl script as url_rewrite program which replaces the string "other" in the url as "squid"
ie if url request is other.example.com it is rewrite as squid.example.com

The url request which are rewrite by url_rewrite program has to be made only it reaches the 172.16.1.48 web server.

The url requests that are not needed url rewrite are to be passed to 172.16.1.49 web server or 172.16.1.50 web server.
Eg: the url request is squid.example.com which does not need url rewrite

Regards
senthil
Henrik Nordström wrote:
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





[Index of Archives]     [Linux Audio Users]     [Samba]     [Big List of Linux Books]     [Linux USB]     [Yosemite News]

  Powered by Linux