Uploaded image for project: 'Undertow'
  1. Undertow
  2. UNDERTOW-243

Reverse proxy doesn't work on openshift due to binding to localhost

    XMLWordPrintable

Details

    • Bug
    • Resolution: Done
    • Major
    • 1.1.Beta2
    • 1.1.Beta1
    • Proxy
    • None

    Description

      The reverse proxy in Undertow fails on OpenShift since it doesn't support a binding address for its sockets. Without the binding address, it will default to using localhost, which is not allowed on OpenShift gears.

      See: https://github.com/undertow-io/undertow/blob/master/core/src/main/java/io/undertow/client/http/HttpClientProvider.java#L77

      Here the XnioIoThread.openStreamConnection uses the method without the binding address option (which internally default to 'localhost'). If this method is changed to use the one which uses a binding address, and is bound to the ip address for the openshift gear, then the reverse proxy works in openshift.

      Being able to specify this IP address needs to be a configurable option.

      Attachments

        Issue Links

          Activity

            People

              sdouglas1@redhat.com Stuart Douglas
              mwringe Matt Wringe
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: