At 01:10 13-03-2007, Felix New wrote:
Maybe i did not discribe my requirement. We need a front web interface
or other method)client?) to modify the all configurations of all
server( or split the file and store it in database, or xml) easily.
[snip]
tired. i want to split the squid.conf and store to database, so modify
easily with web interface. but i don't know how to parse, split, and
reassemble squid.conf with appropriate method. consider squid.conf
You'll have to write the code to parse the squid.conf and feed it
into your database. You can then change the settings through the
interface you designed. Once the changes are done, generate a new
squid.conf by using the settings stored in your database and send it
to the computer where squid is running. Then restart squid.
The above can be done in Perl or any language you are familiar with.
Regards,
-sm