Server Fault is a question and answer site for system and network administrators. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

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 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.

share|improve this question
If you provided a sample of what needed changing, we might be able to help you, but with that, I'm afraid there's not much I can suggest. My best guess would just be a lot of fun piping through sed and grep. – Daniel Quinn Dec 15 '11 at 12:37

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Browse other questions tagged or ask your own question.