Fix up the use of apache configuration stuff to not use global state.