Change configuration to be compatible with Apache 2.2 and 2.4