Fix an infinite loop in the Apache module.