Make sure that the default port is 80 when the request doesn't include HTTP_X_FORWARDED_PROTO.