You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@trafficserver.apache.org by "Zhao Yongming (Updated) (JIRA)" <ji...@apache.org> on 2012/03/02 19:15:58 UTC

[jira] [Updated] (TS-1002) log unmapped HOST when pristine_host_hdr disabled

     [ https://issues.apache.org/jira/browse/TS-1002?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Zhao Yongming updated TS-1002:
------------------------------

    Attachment: TS-1002.patch

I have create a new cquuh ( client_req_unmapped_url_host ), which is what your needs, this patch will apply to git master

config:
  <Format = "%<cquuc> %<cquup> %<cquuh>" />
result:
http://cdn.zymlinux.net/trafficserver/ts75.png /trafficserver/ts75.png cdn.zymlinux.net

please test & review
                
> log unmapped HOST when pristine_host_hdr disabled
> -------------------------------------------------
>
>                 Key: TS-1002
>                 URL: https://issues.apache.org/jira/browse/TS-1002
>             Project: Traffic Server
>          Issue Type: Wish
>          Components: Logging
>            Reporter: Conan Wang
>            Assignee: Zhao Yongming
>            Priority: Minor
>             Fix For: 3.1.5
>
>         Attachments: TS-1002.patch
>
>
> 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

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira