more robust apache config