I've setup Squid on windows (Win7) and it works fine, but I want to be able to have the conf files portable. Is it possible for the paths in squid.conf to be relative to the squid working directory rather than absolute?
I've setup Squid on windows (Win7) and it works fine, but I want to be able to have the conf files portable. Is it possible for the paths in squid.conf to be relative to the squid working directory rather than absolute?
Yes, you can use relative paths in the
squid.conf
. At least it works for me inWindows XP
andSquid 3.0.STABLE26
if runSquid
as a service. Paths should be relative tosquid.exe
location.I'm not sure - but one thing you could consider doing is using an environment variable. Create a %SquidHome% or similar variable and use those in your .conf file. Then if you move it to a new machine you just set the same environment variable to the new install directory.
You may use -f options to set config-file. If you setup windows service:
if you run squid daemon: