Hi,
OK ... thanks for the replay ...
Our requirement is, we should have an initial URL
http://proxy.mydomain.com for the proxy server. Clients browser want
to just type simple folder name after this initial URL to look on to
the respective backend web servers ...
thanks,
Br--
Navas
At 01:03 AM 9/20/2006, Henrik Nordstrom wrote:
tis 2006-09-19 klockan 15:18 +0400 skrev Mohamed Navas V:
> Hi,
>
> The reverse proxy to redirect for 1 web backend server is working fine
> for me ...
> Still I am confused with some setting for multiple backend servers.
>
> For single backend server setup http://proxy.my-domain.com is
> redirecting to http://backendserver1.my-domain.com
>
> For multiple backend server setup, we have to do as follows:-
>
> http://proxy.mydomain.com --> http://backendserver1.my-domain.com
ok, just cache_peer + cache_peer_domain/access..
> http://proxy.mydomain.com/folder1 --> http://backendserver2.my-domain.com
> http://proxy.mydomain.com/folder2 -->
> http://backendserver3.my-domain.com etc ...
These is a little trickier if you really want to rewrite the url-path
after the host. If you can rearrange the backend servers to each have
their content in unique directories then things gets a whole lot simpler
and much less error prone. In such case it's just a matter of cache_peer
+ cache_peer_access to select which backend to use.
If you really need to rewrite the url-path then use a redirector to
rewrite the requested URL.
Regards
Henrik