Automatically configure Apache