I am facing a taks of cleaning up an unreasonably big Apache config. It accumulated crud over almost a decade. I am starting with refactoring it, fixing tabbing/indentation, breaking out sections into includes.
Do you have any useful scripts / techniques / bbedit config files or general advice on keeping an organized apache config? Are there any books / websites that focus on properly organizing Apache configs?
I once had to deal with such a file, each time the company bought out another company they added their brands into the 1 BIG httpd.conf file, different brands had to be tested in different test environments. Our approach was:
grep
out all the comment lines and blank lines. It seems less daunting when you reduce a 5000 line file to 2000 by removing all the spacing and comments.