Re: starting 2 instances of squid

From: Henrik Nordstrom <hno@dont-contact.us>
Date: Sat, 30 May 1998 15:17:32 +0200

Erik Lewis wrote:

> > If you want to run two Squids with only one cache you have to
> > configure one as a proxy-only parent of the other (which has
> > the cache).
> How is this done?
> > Both caches need to have different visible_hostname as well, or they
> > will complain loudly on cache-loops.
> How is this done?

The short answer to your questions is: look in squid.conf.

1. The caching instance is set up as ususal.
2. The non-caching (filtering) instance is set up as follows:
cache_host localhost parent 3128 3130 proxy-only
visible_hostname filter-proxy.your.domain

There are two ways to get them to run on the same host. Either use
different port numbers (configured by http_port and icp_port), or setup
virtual IP-interfaces and run the two Squid processes on different IP
addresses (configured by tcp/udp_incoming_address. Don't set
*_outgoing_address)

---
Henrik Nordström
Received on Sat May 30 1998 - 06:45:49 MDT

This archive was generated by hypermail pre-2.1.9 : Tue Dec 09 2003 - 16:40:31 MST