Fix for compatibility issues in different version of apache2