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

The ProxyHandler does not update the HOST header with the new host

    XMLWordPrintable

Details

    • Feature Request
    • Resolution: Done
    • Major
    • 1.1.Beta6
    • 1.1.Beta3
    • Core
    • None
    • Low

    Description

      When using the ProxyHandler the HOST header should be updated to utilize the host where the proxied request will go. The original HOST header value should be retained in the X-Forwarded-Host header.

      This is per the Http 1.1 spec (http://www.w3.org/Protocols/rfc2616/rfc2616-sec14.html) section 14.23

      Example:

      Incoming request:
      GET /ping HTTP/1.1
      Host: somewhere.somecompany

      Proxied Request:
      GET /ping HTTP/1.1
      Host: somewhere.internal.somecompany
      X-Forwarded-Host: somewhere.somecompany

      Attachments

        Activity

          People

            sdouglas1@redhat.com Stuart Douglas
            vonnagy Ivan von Nagy (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Time Tracking

                Estimated:
                Original Estimate - 2 hours
                2h
                Remaining:
                Remaining Estimate - 2 hours
                2h
                Logged:
                Time Spent - Not Specified
                Not Specified