Support both Apache 2.4 and older versions

Per @nigelbabu’s suggestion