Fix apache mode