Uploaded image for project: 'Traffic Server'
  1. Traffic Server
  2. TS-1002

log unmapped HOST when pristine_host_hdr disabled

    Details

    • Type: New Feature
    • Status: Closed
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 3.1.3
    • Component/s: Logging
    • Labels:
      None

      Description

      I want to log user request's "Host" in http header before remap. I write logs_xml.config, like: %<

      {Host}

      cqh>

      When proxy.config.url_remap.pristine_host_hdr is enabled, I will get the right "Host" which is not rewritten.

      When disable the config, I always get the rewritten/mapped "Host" which is not what I need.

      logs_xml reference: http://trafficserver.apache.org/docs/v2/admin/logfmts.htm#66912

        Attachments

        1. TS-1002.patch
          7 kB
          Zhao Yongming

          Activity

            People

            • Assignee:
              zym Zhao Yongming
              Reporter:
              conanmind Conan Wang
            • Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: