The configuration can only be dumped via cachemgr if you have enabled
this in squid.conf.
However, even if you have not enabled dumping of the configuration all
is not lost. You might be able to enable the config dump option by using
a debugger.
gdb /path/to/squid pid_of_running_squid
tbreak cachemgrStart
continue
[send a request for config]
[gdb should stop in cachemgrStart]
print cachemgrFindAction("config")
print $->flags.pw_req = 0
continue
Regards
Henrik
Wayne Bastow wrote:
>
> Hi,
>
> I've done something stupid - overwrote my squid.conf and I don't have a
> backup anywhere. Squid is still running - I went into cachemgr interface
> and tried "Current Squid Configuration" link but I get "Invalid URL" -
> other items on the menu work. Is there some way of getting the
> configuration dumped?
>
> I've looked through the mailing lists and the FAQ but can't find the
> answer - also tried telnetting to 3128 and using a GET
> cache_object://phobos/config HTTP/1.0 - still get "Invalid URL".
>
> Thanks,
> Wayne
Received on Thu Mar 20 2003 - 01:02:55 MST
This archive was generated by hypermail pre-2.1.9 : Tue Dec 09 2003 - 17:14:10 MST