ryan012880 wrote:
> I configured squid for reverse proxy and i have multiple webserver with
> different content, can i configured squid to forward a request to a specific
> server for example:
>
> client request for server1 squid should forward to server1 and if client
> request for server2 it must go to server2, my current config is not working
> cause it only forward the request to server1 even if server2 is define in
> cache_peer directive here is my config:
>
> cache_peer server1.domain.com parent 80 0 no-query originserver
> cache_peer server2.domain.com parent 80 0 no-query originserver
>
> in my /etc/hosts
> 192.168.122.244 server1.domain.com server1
> 192.168.100.2 server2.domain.com server2
>
> if the client request for server2 the client will receive the content of
> server1, if server2 is down and client request for server2 squid still
> forward it to server1, please help. can anyone send me the complete config?
> thanks
The squid internal routing of requests is done via cache_peer_access
lines. see the config example at:
http://wiki.squid-cache.org/SquidFaq/ReverseProxy#head-7bd155a1a9919bda8ff10ca7d3831458866b72eb
Amos
-- Please use Squid 2.7.STABLE4 or 3.0.STABLE8Received on Mon Aug 25 2008 - 07:01:24 MDT
This archive was generated by hypermail 2.2.0 : Mon Aug 25 2008 - 12:00:06 MDT