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



Reply via email to