Bring all the general Apache configuration into one function.