Take first component of X-Forwarded-{Proto,Host}

Apache will add comma separated components to X-Forwarded-{For,Host,Proto} if the header already exists,
i.e. if there are multiple reverse proxies.