Re: [squid-users] Specify parent outside of squid.conf?

From: John Morton <jwm@dont-contact.us>
Date: Wed, 08 Dec 2004 14:55:44 -1200

Armin Marxer wrote:

>>I am running Squid (2.5S7, on FC2 Linux) on a notebook machine, a machine
>>which is used on several networks. One of these networks requires me to
>>use a parent proxy for Internet access. Is it possible to specify the
>>parent proxy, if any, outside the squid.conf config file?
>>
>>Basically I'd like to avoid having to edit the config file depending on
>>the network connected to. Ideally I could specify it via environment
>>variable, but an option on the squid command line would do too.
>>
>>
>>
>
>You could run multiple squid.conf's and depending on which network you were
>on, start squid up with the correct squid.conf file. Check out the FAQ on
>squid's command-line options.
>
The cache_peer directive doesn't appear to be one of the few that
require a complete restart, so it may be possible to switch config files
(or create by pluging values into a template), then do a reload.

John
Received on Tue Dec 07 2004 - 18:58:22 MST

This archive was generated by hypermail pre-2.1.9 : Sat Jan 01 2005 - 12:00:01 MST