fix http_api for apache