Fix "remote_ip" in HTTP/HTTPS