ok great point amos . is there a way to change the default config squid file for squid ?
i mean i want to change the default location from /etc/squid/squid.conf to something else ? can i change that from code cc before compile ? cheers > On Dec 12, 2017, at 6:42 PM, Amos Jeffries <squ...@treenet.co.nz> wrote: > > 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 _______________________________________________ squid-users mailing list squid-users@lists.squid-cache.org http://lists.squid-cache.org/listinfo/squid-users