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

Zhao Yongming commented on TS-1002:
-----------------------------------

I think this is fixed in the git master?
{code}
zymtest1 trafficserver # tail -n 100 taobaomiss.log
00:40:39 127.0.0.1 fe80::746d:74ff:febf:ebaa 428 200 TCP_MISS 
"http://cdn.zymlinux.net/trafficserver/0"; 411 402 0 text/plain 
http://zymlinux.net/trafficserver/0 "-"
00:40:39 127.0.0.1 fe80::746d:74ff:febf:ebaa 475 200 TCP_MISS 
"http://cdn.zymlinux.net/trafficserver/ts75.png"; 418 404 9520 image/png 
http://zymlinux.net/trafficserver/ts75.png "-"
00:42:42 127.0.0.1 fe80::746d:74ff:febf:ebaa 54 200 TCP_REFRESH_HIT 
"http://cdn.zymlinux.net/trafficserver/ts75.png"; 418 404 9520 image/png 
http://zymlinux.net/trafficserver/ts75.png "-"
00:42:42 127.0.0.1 fe80::746d:74ff:febf:ebaa 53 200 TCP_MISS 
"http://cdn.zymlinux.net/trafficserver/0"; 411 402 0 text/plain 
http://zymlinux.net/trafficserver/0 "-"
zymtest1 trafficserver # traffic_line -r 
proxy.config.url_remap.pristine_host_hdr
0
zymtest1 trafficserver # grep cdn.zymlinux.net /etc/trafficserver/remap.config
map http://cdn.zymlinux.net/    http://zymlinux.net
zymtest1 trafficserver # 
{code}
                
> 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
>            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