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

2010-08-03 Thread John Doe
From: senthilkumaar2021 

> 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

Maybe use acls with cache_peer_access instead of rewrites...?

JD


  


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

2010-08-02 Thread senthilkumaar2021

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


  




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

2010-08-02 Thread Henrik Nordström
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



[squid-users] Rewrite url and reverse proxy

2010-08-02 Thread 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.


If i a request comes from other.example.com it has to be redirected and 
it must reach 172.16.1.48 ip and if the request squid.example.com comes 
from client it is not rediected and it must reach eitrher 172.16.1.49 or 
172.16.1.50


i think redirected requests are same as directed requests after passing 
to url_rewrite program


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



Regards
senthil