Respecting HTTP_X_FORWARDED_PROTO