[ 
https://issues.apache.org/jira/browse/TS-1002?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13220704#comment-13220704
 ] 

Conan Wang commented on TS-1002:
--------------------------------

not fix in my test.

CONFIG proxy.config.url_remap.pristine_host_hdr INT 0
map    http://cdn.zymlinux.net    http://zymlinux.net

squid.log
1330668375.573 119 127.0.0.1 TCP_MISS/200 9821 GET 
http://zymlinux.net/trafficserver/ts75.png - DIRECT/zymlinux.net image/png -

custom.log ( first field is %<{Host}cqh> )
zymlinux.net - 0 TCP_MISS [02/Mar/2012:14:06:15 +0800] "GET 
/trafficserver/ts75.png HTTP/1.1" 200 9520 "-" "-" "curl/7.21.4 
(universal-apple-darwin11.0) libcurl/7.21.4 OpenSSL/0.9.8r zlib/1.2.5"

                
> 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
>
>
> 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

        

Reply via email to