Re: Is it possible to run two or more different versions of Squid on the same computer by using different port numbers?

From: Clifton Royston <cliftonr@dont-contact.us>
Date: Sat, 30 Oct 1999 09:14:50 -1000

On Sat, Oct 30, 1999 at 10:48:21AM +0300, Erdinç Dall? wrote:
> Is it possible to run two or more different versions of Squid on the same
> computer by using different port numbers?
>
> Erick Dalli

  Yes, but each always needs to be invoked with its own configuration
file explicitly specified. Here's a real example of the rc.local on a
machine where I'm doing that:

 # ...
 if [ -x /usr/local/squid/bin/squid ]; then
        echo -n ' squid'; /usr/local/squid/bin/squid
 fi
 # ...
 # Special configuration of squid that runs in memory file system (RAM disk)
 if [ -x /usr/local/squid2/etc ]; then
        # Clear cache in memory file system
        /usr/local/squid/bin/squid -f /usr/local/squid2/etc/squid.conf -z
        echo -n ' squid2 (mfs)'; /usr/local/squid/bin/squid -f /usr/local/squid2/etc/squid.conf
 fi

  You also need to specify the configuration file every time you invoke
it to send a signal, so that it gets directed to the correct squid. E.g.

 /usr/local/squid/bin/squid -f /usr/local/squid2/etc/squid.conf -k shutdown

  In this case, the second squid, on port 8080 is configured to use as
a parent the first, on port 3128, so that I could experiment with
configuring a cache hierarchy with cache digests.
  -- Clifton

-- 
 Clifton Royston  --  LavaNet Systems Architect --  cliftonr@lava.net
        "An absolute monarch would be absolutely wise and good.  
           But no man is strong enough to have no interest.  
             Therefore the best king would be Pure Chance.  
              It is Pure Chance that rules the Universe; 
          therefore, and only therefore, life is good." - AC
Received on Sat Oct 30 1999 - 13:24:48 MDT

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