As we learned before, we can use the
-k parse option to test our configuration file. Now, we are going to add a test line and see if Squid can catch the error.
-k parseoption as follows:
squid -k parse
unknown_directiveis not a valid directive for the Squid configuration file, we should get an error similar to the following:
2010/07/21 22:28:40| cache_cf.cc(346) squid.conf:945 unrecognized: 'unknown_directive'
So, if we find an error within our configuration file, we can go back and fix the errors and then parse the configuration file again.
We first added an ...