improve apache config and setup script