Los proxies de reenvío proporcionan un punto único a través del cual varias máquinas envían solicitudes a un servidor externo. Pueden aplicar políticas de seguridad, registrar y analizar solicitudes, y realizar otras acciones para que las solicitudes cumplan con las reglas de tu empresa. Mediante Apigee Hybrid, puedes configurar un proxy de reenvío que actúe como intermediario entre tus proxies de API y un TargetEndpoint externo (un servidor de destino de backend).
Para usar un proxy de reenvío HTTP entre el entorno híbrido y TargetEndpoint, debes establecer la configuración del proxy de salida en tu archivo de anulaciones. Estas propiedades con permisos en el entorno enrutan las solicitudes de destino del entorno híbrido al proxy de reenvío HTTP. También debes asegurarte de que use.proxy esté configurado como “true” en todos los TargetEndpoint que quieras pasar a través de un proxy de reenvío HTTP. Consulta la parte inferior de la página para obtener instrucciones.
Si deseas configurar un entorno híbrido para los proxies de reenvío, agrega la propiedad envs.httpProxy a tu archivo de anulaciones y aplícalo al clúster. Por ejemplo:
El proxy de reenvío se configura para un entorno; todo el tráfico que va de los proxies de API en ese entorno a los destinos de backend pasa por el proxy de reenvío HTTP especificado. Si el tráfico de un destino específico de un proxy de API debe ir directamente al destino de backend, se debe pasar el proxy de reenvío y, luego, configurar la siguiente propiedad en el TargetEndpoint para anular el proxy HTTP de reenvío:
<Property name="use.proxy">false</Property>
Para obtener más información sobre cómo configurar las propiedades de TargetEndpoint, incluido cómo configurar la conexión con el extremo de destino, consulta Referencia de las propiedades de los extremos.
Configura use.proxy como “verdadero” para cualquier TargetEndpoint que quieras que pase por un proxy de reenvío HTTP:
[[["Fácil de comprender","easyToUnderstand","thumb-up"],["Resolvió mi problema","solvedMyProblem","thumb-up"],["Otro","otherUp","thumb-up"]],[["Difícil de entender","hardToUnderstand","thumb-down"],["Información o código de muestra incorrectos","incorrectInformationOrSampleCode","thumb-down"],["Faltan la información o los ejemplos que necesito","missingTheInformationSamplesINeed","thumb-down"],["Problema de traducción","translationIssue","thumb-down"],["Otro","otherDown","thumb-down"]],["Última actualización: 2025-09-03 (UTC)"],[[["\u003cp\u003eThis documentation covers version 1.7 of Apigee hybrid, which is end-of-life, and users should upgrade to a newer version.\u003c/p\u003e\n"],["\u003cp\u003eApigee hybrid can be configured to use a forward proxy, which acts as an intermediary between API proxies and external target servers for enforcing security and logging requests.\u003c/p\u003e\n"],["\u003cp\u003eConfiguring an HTTP forward proxy in Apigee hybrid requires setting the \u003ccode\u003eenvs.httpProxy\u003c/code\u003e property in the overrides file with the scheme, host, and port.\u003c/p\u003e\n"],["\u003cp\u003eBy default, all traffic from API proxies within a configured environment will go through the forward proxy, but this can be overridden on a per-target basis by setting the \u003ccode\u003euse.proxy\u003c/code\u003e property to "false" in the TargetEndpoint.\u003c/p\u003e\n"],["\u003cp\u003eSetting \u003ccode\u003euse.proxy\u003c/code\u003e to "true" in a TargetEndpoint ensures that traffic to that target will go through the configured HTTP forward proxy.\u003c/p\u003e\n"]]],[],null,["# Configure forward proxying for API proxies\n\n| You are currently viewing version 1.7 of the Apigee hybrid documentation. **This version is end of life.** You should upgrade to a newer version. For more information, see [Supported versions](/apigee/docs/hybrid/supported-platforms#supported-versions).\n\nForward proxies provide a single point through which multiple machines send requests to an\nexternal server. They can enforce security policies, log and analyze requests, and perform other\nactions so that requests adhere to your business rules. With Apigee hybrid, you can configure a forward proxy\nthat intermediates your API proxies and an external TargetEndpoint (a backend target server).\n\nTo use an HTTP forward proxy between hybrid and the TargetEndpoint, you must configure\nthe outbound proxy settings in your overrides file. These environment-scoped properties\nroute target requests from hybrid to the HTTP forward proxy. You also need to ensure\n`use.proxy` is set to \"true\" for any TargetEndpoint that you want to go through an HTTP\nforward proxy. See the bottom of the page for instructions.\n\nTo configure a hybrid environment for forwarding proxying, add\nthe [`envs.httpProxy` property](/apigee/docs/hybrid/v1.7/config-prop-ref#envs) to your overrides file and apply it to the\ncluster. For example: \n\n```text\nenvs:\n - name: test\n httpProxy:\n scheme: HTTP\n host: 10.12.0.47\n port: 3128\n ...\n```\n| **NOTE:** The `scheme` can be HTTP or HTTPS and must be uppercase.\n\nFor details on each of the `envs.httpProxy` configuration properties refer to the\n[Configuration property reference](/apigee/docs/hybrid/v1.7/config-prop-ref#envs).\n\nForward proxying is configured for an environment; all traffic going from API\nproxies in that environment to backend targets goes through the specified HTTP\nforward proxy. If the traffic for a\nspecific target of an API proxy should go directly to the backend target, bypassing the forward\nproxy, then set the following property in the TargetEndpoint to override the HTTP forward\nproxy: \n\n```text\n\u003cProperty name=\"use.proxy\"\u003efalse\u003c/Property\u003e\n```\n\nFor more information on setting the TargetEndpoint properties, including how to configure\nthe connection to the target endpoint, see [Endpoint properties reference](/apigee/docs/api-platform/reference/endpoint-properties-reference).\n\nSet `use.proxy` to \"true\" for any TargetEndpoint that you want to go through\nan HTTP forward proxy: \n\n```text\n\u003cProperty name=\"use.proxy\"\u003etrue\u003c/Property\u003e\n```"]]