Jean
You have to define the servers, url, domains, etc you're
going to accelerate in the configuration using a combination of
cache_peer + acl + cache_peer_access + never_direct
Ej : you have to accelerate www.example.com that resides on 10.1.1.1,
then your config should be like this
http_port 80 defaultsite= www.example.com vhost
cache_peer 10.1.1.1 parent 80 0 no-query originserver
acl accel_host dstdomain .example.com
cache_peer_access 10.1.1.1 allow accel_host
acl all src 0.0.0.0/0.0.0.0
never_direct deny all
Regards, Pablo
On 11/21/06, Jean Chiappini <Jean.Chiappini@virtua.ch> wrote:
> Hello,
>
> I installed squid 2.6 and I would try to load balanced our websever.
>
> In front I have a squid server and I want to load balance to three web
> servers. The squid server listen on port 8080 and the three webservers
> listen on the port 80.
>
> I try a lot's of different syntax, but that don't work.
>
> This is my squid.conf :
>
> http_port 192.168.200.40:8080 vhost vport
> http_port 127.0.0.1:8080
> acl mynetwork src 0.0.0.0/0.0.0.0
> http_access allow mynetwork
> cache_peer 192.168.200.42 parent 8080 80 weight=2
> cache_peer 192.168.200.43 parent 8080 80 weight=2
> cache_peer 192.168.200.44 parent 8080 80 weight=3
>
> Someone could help me please ?
>
> Regards
>
> Jean
>
>
>
>
>
>
>
Received on Tue Nov 21 2006 - 13:56:27 MST
This archive was generated by hypermail pre-2.1.9 : Fri Dec 01 2006 - 12:00:03 MST