[squid-users] question in :src/cf.data.pre "
Amos Jeffries
squid3 at treenet.co.nz
Tue Dec 12 16:42:39 UTC 2017
On 13/12/17 04:12, --Ahmad-- wrote:
> @amos about your question .
>
> i think “include option “ is ok , but i also need it to be hidden and
> not added to squid.conf
>
> say like :
>
> include /var/test.cc
>
> would like this is loaded automatically and don’t need to add it in
> squid.conf ???
>
>
> i mean each time i run squid it will load like include other file .
>
> i tried to add into pre file below config :
>
> NAME: include
> TYPE: string
> LOC: Config.include
> DEFAULT: /var/test.cc <http://test.cc>
> DOC_START
> Hello
> DOC_END
>
Not like this. "include" is a hard-coded behaviour, not a normal
directive. It needs to be used like the Debian patch does, with
"squid.conf" file being the pre-determined settings and users in control
of the other stuff pulled in by 'include' from somewhere else.
OR, you just use the -f command line option to point at your custom
config file when you run Squid "from terminal".
I wasn't going to bother asking for a fourth time, but since Anthony did
"who are you trying to hide this from?" is still unanswered. Anyone who
might see these settings in the config file can also find them by other
means (ie looking at the machines open ports). So the lengths you are
going to hide them is very weird.
Amos
More information about the squid-users
mailing list