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

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

XMLWordPrintable

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

      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

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

                Created:
                Updated:
                Resolved:

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