Fix for HTTP_X_FORWARDED_PROTO