I have inherited some servers which have many virtual hosts that have been "organically" developed over the years. Unfortunately they are awful to the eye, so bad, I cannot look at them.
Hence I am looking for a tool that will read in many hundreds of www.mystupidsite.com.conf files and return similarly working versions, with all the default redundancies and cruft stripped out.
I suspect it might be difficult because correctness would depend on other modules loaded, however given that there are many ancient apache shops about I can only hope.
ive noticed that webmin provides a web interface to manage httpd.conf files, so I am going to look into how their perl modules handle parsing the files to some canonical state.