use correct apache mode