Search squid archive

Re: Squid as LoadBalance

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

 



2009/9/1 Jones, Keven <Keven.Jones@xxxxxxx>:
>
> Does anyone know if this is sufficient squid.conf:
>
>
> cache_peer 172.19.23.91 parent 80 0 no-query originserver name=server_1
> acl sites_server_1 dstdomain img01.cprpt.com
> cache_peer_access server_1 allow sites_server_1
> cache_peer 172.19.23.92 parent 80 0 no-query originserver name=server_2
> acl sites_server_2 dstdomain img01.cprpt.com
> cache_peer_access server_2 allow sites_server_2
> cache_peer 172.19.23.91 parent 80 0 no-query originserver round-robin
> cache_peer 172.19.23.92 parent 80 0 no-query originserver round-robin
>
> To allow squid to provice cache for 2 web servers uitlizing one url ?
>

No. That should be:

cache_peer 172.19.23.91 parent 80 0 no-query originserver
name=server_1 round-robin
cache_peer 172.19.23.92 parent 80 0 no-query originserver
name=server_2 round-robin
acl sites_server_1 dstdomain img01.cprpt.com
cache_peer_access server_1 allow sites_server_1
cache_peer_access server_2 allow sites_server_1


Or you could use my perl module to create a reverse proxy with
loadbalancing quickly:

http://search.cpan.org/~pangj/Net-Squid-ReverseProxy-0.01/lib/Net/Squid/ReverseProxy.pm

HTH.

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

  Powered by Linux