Les proxys de transfert fournissent un point unique par lequel plusieurs machines envoient des requêtes à un serveur externe. Ils peuvent appliquer des règles de sécurité, enregistrer et analyser les requêtes et effectuer d'autres actions afin que les requêtes respectent vos règles métier. Avec Apigee hybrid, vous pouvez configurer un proxy de transfert qui sert d'intermédiaire entre vos proxys d'API et un TargetEndpoint externe (un serveur cible en backend).
Pour utiliser un proxy de transfert HTTP entre hybrid et le TargetEndpoint, vous devez configurer les paramètres de proxy sortant dans votre fichier de remplacement. Ces propriétés spécifiques à l'environnement acheminent les requêtes cibles d'hybrid vers le proxy de transfert HTTP. Vous devez également vous assurer que use.proxy est défini sur "true" pour tout TargetEndpoint que vous souhaitez faire passer par un proxy de transfert HTTP. Pour obtenir des instructions, consultez le bas de la page.
Pour configurer un environnement hybride pour le proxy de transfert, ajoutez la propriété envs.httpProxy à votre fichier de remplacement et appliquez-la au cluster. Exemple :
Le proxy de transfert est configuré pour un environnement. Tout le trafic allant des proxys d'API de cet environnement vers des cibles en backend passe par le proxy de transfert HTTP spécifié. Si le trafic destiné à une cible spécifique d'un proxy d'API doit accéder directement à la cible en backend, en contournant le proxy de transfert, définissez la propriété suivante dans le TargetEndpoint pour remplacer le proxy de transfert HTTP :
Définissez use.proxy sur "true" pour tout TargetEndpoint que vous souhaitez faire passer par un proxy de transfert HTTP :
<Property name="use.proxy">true</Property>
Sauf indication contraire, le contenu de cette page est régi par une licence Creative Commons Attribution 4.0, et les échantillons de code sont régis par une licence Apache 2.0. Pour en savoir plus, consultez les Règles du site Google Developers. Java est une marque déposée d'Oracle et/ou de ses sociétés affiliées.
Dernière mise à jour le 2025/09/03 (UTC).
[[["Facile à comprendre","easyToUnderstand","thumb-up"],["J'ai pu résoudre mon problème","solvedMyProblem","thumb-up"],["Autre","otherUp","thumb-up"]],[["Difficile à comprendre","hardToUnderstand","thumb-down"],["Informations ou exemple de code incorrects","incorrectInformationOrSampleCode","thumb-down"],["Il n'y a pas l'information/les exemples dont j'ai besoin","missingTheInformationSamplesINeed","thumb-down"],["Problème de traduction","translationIssue","thumb-down"],["Autre","otherDown","thumb-down"]],["Dernière mise à jour le 2025/09/03 (UTC)."],[[["\u003cp\u003eThis document details how to configure a forward proxy for Apigee hybrid version 1.9, distinct from the forward proxy functionality for non-hybrid installations.\u003c/p\u003e\n"],["\u003cp\u003eConfiguring a forward proxy in Apigee hybrid involves setting outbound proxy properties in the overrides file, specifically within the \u003ccode\u003eenvs.httpProxy\u003c/code\u003e section.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003escheme\u003c/code\u003e property within \u003ccode\u003eenvs.httpProxy\u003c/code\u003e must be set to "HTTP" in uppercase.\u003c/p\u003e\n"],["\u003cp\u003eTo direct API proxy traffic through the configured forward proxy, the \u003ccode\u003euse.proxy\u003c/code\u003e property must be set to "true" in the relevant TargetEndpoint.\u003c/p\u003e\n"],["\u003cp\u003eTraffic can bypass the forward proxy by setting the \u003ccode\u003euse.proxy\u003c/code\u003e property to "false" within a specific TargetEndpoint.\u003c/p\u003e\n"]]],[],null,["# Configure forward proxying for API proxies\n\n| You are currently viewing version 1.9 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| **Important:** Apigee also supports a [forward proxy functionality for non-hybrid\n| installations](/apigee/docs/api-platform/fundamentals/environments-overview#forward-proxy). Use the instructions provided on this page to configure forward proxies for hybrid rather than the general Apigee functionality.\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.9/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` must be HTTP 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.9/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```"]]