Re: Config file...

From: Henrik Nordstrom <>
Date: Mon, 11 Jan 1999 05:35:34 +0100

Stuart Young wrote:
>I've started to really notice how huge the config file has become..

This is because squid.conf(.default) is about the only documentation
there is on how to configure it.

I'd recommend you to do the following to get it down to a manageable

1. Do a first time config from the default config file.
   Begin all you own comments with ## to protect them from the next
2. Remove all documentation/examples/defaults from your squid.conf.
   mv squid.conf squid.conf.full
   cat squid.conf.full | egrep -v '^#([^#]|$)' | uniq | sed -e 's/##/#/'
3. Tidy it up and add some more comments describing your setup, and why
it is like it is. (now use single # for comments, see above)
4. rm squid.conf.full

You should regard squid.conf.default as a reference manual with examples
rather than a config file. Having all this in your active squid.conf
file can be confusing, especially after a few upgrades where some of the
information in the original squid.conf gets outdated and new options
gets added. It is very easy to forget that squid.conf does not get
automatically upgraded when doing a upgrade.

Perhaps squid.conf should be split into a reference manual, and an
example/default configuration file.

Henrik Nordstrom
Spare time Squid hacker
Received on Sun Jan 10 1999 - 21:25:53 MST

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