Handle apache 2.2 and apache2.4