[squid-users] squid/squidGuard/Zope

From: Thomas Olsen <[email protected]>
Date: Tue, 19 Jul 2005 15:34:21 +0200

Hi

I'm a complete newbie to both squid and squidGuard but I've googled and
searched thru the mailing lists to no avail.

My setup is that I have two Zope instances running as ZEO clients. They run on
two different servers one is the same where ZEO and squid are running the
other one is on the local LAN having address 192.168.15.2.

The two Zope instances both run http on port 8280 and icp on port 3131.

I'm running squid-3.0-PRE3-20050708 because we want to take advantage of the
ESI features.
My squid.conf has the following lines (excerpt):

cache_peer 127.0.0.1 parent 8280 3131 \
 no-digest no-netdb-exchange round-robin
cache_peer 192.168.15.2 parent 8280 3131 \
 no-digest no-netdb-exchange round-robin

cache_peer_access 127.0.0.1 allow all
cache_peer_access 192.168.15.2 allow all

redirect_program /usr/bin/squidGuard -c /etc/squid/squidGuard.conf
redirect_children 10

My squidGuard.conf looks like this:

dbhome /var/lib/squidguard/db
logdir /usr/local/squid3/var/logs
acl {
 default {
  redirect http://127.0.0.1:8280/VirtualHostBase/http/test.server.dk:80/%p
 }
}

This only serves requests to the Zope instance on localhost. Now I want to
load balance between 127.0.0.1 and 192.168.15.2, so basically I would like
something like:

acl {
 default {
  redirect http://127.0.0.1:8280/VirtualHostBase/http/test.server.dk:80/%p
  redirect http://192.168.15.2:8280/VirtualHostBase/http/test.server.dk:80/%p
 }
}

How do I accomplish that?

-- 
Med venlig hilsen
Thomas Olsen
http://www.headnet.dk
Received on Tue Jul 19 2005 - 07:32:34 MDT

This archive was generated by hypermail pre-2.1.9 : Mon Aug 01 2005 - 12:00:02 MDT