Weiterleitungsproxys bieten einen zentralen Punkt, über den mehrere Maschinen Anfragen an einen externen Server senden. Sie können Sicherheitsrichtlinien erzwingen, Anfragen protokollieren und analysieren und andere Aktionen ausführen, sodass Anfragen Ihren Geschäftsregeln entsprechen. Mit Apigee Hybrid können Sie einen Weiterleitungsproxy konfigurieren, der Ihre API-Proxys und einen externen TargetEndpoint (einen Backend-Zielserver) leitet.
Wenn Sie einen HTTP-Weiterleitungsproxy zwischen Hybrid und TargetEndpoint verwenden möchten, müssen Sie die Einstellungen für ausgehenden Proxy in Ihrer Überschreibungsdatei konfigurieren. Diese umgebungsbezogenen Attribute leiten Zielanfragen von Hybrid an den HTTP-Weiterleitungsproxy weiter. Achten Sie außerdem darauf, dass use.proxy für jeden TargetEndpoint auf "true" gesetzt ist, den Sie über einen HTTP-Weiterleitungsproxy durchlaufen möchten. Eine Anleitung finden Sie unten auf der Seite.
Zur Konfiguration einer Hybridumgebung für das Weiterleitungsproxy fügen Sie der Überschreibungsdatei das Attribut envs.httpProxy hinzu und wenden es auf den Cluster an. Beispiel:
Ein Weiterleitungsproxy ist für eine Umgebung konfiguriert. Der gesamte Traffic, der von API-Proxys in dieser Umgebung zu Backend-Zielen geleitet wird, wird über den angegebenen HTTP-Weiterleitungsproxy geleitet. Wenn der Traffic für ein bestimmtes Ziel eines API-Proxys direkt zum Backend-Ziel geleitet werden soll, die den Weiterleitungsproxy umgehen, legen Sie das folgende Attribut im TargetEndpoint fest, um den HTTP-Weiterleitungsproxy zu überschreiben:
<Property name="use.proxy">false</Property>
Weitere Informationen zum Festlegen der TargetEndpoint-Attribute, einschließlich der Konfiguration der Verbindung zum Zielendpunkt, finden Sie unter Referenz für Zielpunktattribute.
Setzen Sie use.proxy auf "true" für jeden TargetEndpoint, den Sie über einen HTTP-Weiterleitungsproxy durchlaufen möchten:
[[["Leicht verständlich","easyToUnderstand","thumb-up"],["Mein Problem wurde gelöst","solvedMyProblem","thumb-up"],["Sonstiges","otherUp","thumb-up"]],[["Schwer verständlich","hardToUnderstand","thumb-down"],["Informationen oder Beispielcode falsch","incorrectInformationOrSampleCode","thumb-down"],["Benötigte Informationen/Beispiele nicht gefunden","missingTheInformationSamplesINeed","thumb-down"],["Problem mit der Übersetzung","translationIssue","thumb-down"],["Sonstiges","otherDown","thumb-down"]],["Zuletzt aktualisiert: 2025-08-28 (UTC)."],[[["\u003cp\u003eThis documentation covers version 1.2 of Apigee hybrid, which is now end-of-life and requires an 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 for requests from API proxies to external TargetEndpoints, enabling security policy enforcement and request logging.\u003c/p\u003e\n"],["\u003cp\u003eConfiguring a forward proxy involves setting outbound proxy properties in the overrides file, specifically using the \u003ccode\u003eenvs.httpProxy\u003c/code\u003e property, along with setting the scheme, host, and port of the proxy.\u003c/p\u003e\n"],["\u003cp\u003eForward proxying is environment-specific, so all traffic from API proxies within that environment to backend targets will use the specified proxy unless the \u003ccode\u003euse.proxy\u003c/code\u003e property is explicitly set to "false" in the TargetEndpoint.\u003c/p\u003e\n"],["\u003cp\u003eTo make a specific TargetEndpoint utilize the forward proxy, the \u003ccode\u003euse.proxy\u003c/code\u003e property within that TargetEndpoint must be set to "true".\u003c/p\u003e\n"]]],[],null,["# Configure forward proxying for API proxies\n\n| You are currently viewing version 1.2 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.2/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.2/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```"]]