Uploaded image for project: 'AMQ Broker'
  1. AMQ Broker
  2. ENTMQBR-4728

Doc: Enable Proxy Forwarding

XMLWordPrintable

    • Icon: Task Task
    • Resolution: Duplicate
    • Icon: Major Major
    • None
    • None
    • documentation
    • None

      The proxies and load balancers usually support `X-Forwarded` headers to send information altered or lost when a proxy is involved in the path of the request.
      Jetty supports the ForwardedRequestCustomizer customizer to handle `X-Forwarded` headers.

      Set the `customizer` attribute via the `web` element to enable the ForwardedRequestCustomizer customizer, ie:

      ```xml
      <web bind="http://localhost:8161" path="web" customizer="org.eclipse.jetty.server.ForwardedRequestCustomizer">
      <app url="activemq-branding" war="activemq-branding.war"/>
      <app url="artemis-plugin" war="artemis-plugin.war"/>
      <app url="console" war="console.war"/>
      </web>
      ```

              jcliffor@redhat.com John Clifford
              jbyrne@redhat.com John Byrne (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Created:
                Updated:
                Resolved: