dandinw commented on issue #9036: URL: https://github.com/apache/trafficserver/issues/9036#issuecomment-1216152249
> I'm not sure if I understand what you need, but this setting might help. https://docs.trafficserver.apache.org/admin-guide/files/records.config.en.html#proxy.config.url_remap.pristine_host_hdr I have tried this option. for example. this is the remap.config. and the proxy.config.url_remap.pristine_host_hdr value is 1 map http://www.test3.com http://www.example.com the traffic.out log The following contents are displayed: +++++++++ Proxy's Request after hooks +++++++++ -- State Machine Id: 41 GET http://www.example3.com/ HTTP/1.1 User-Agent: curl/7.29.0 Host: www.test3.com Accept: */* Client-ip: 127.0.0.1 X-Forwarded-For: 127.0.0.1 Via: http/1.1 traffic_server[b6f7022b-cc37-48b5-a0af-d10c976883dd] (ApacheTrafficServer/9.1.2) the nginx access.log: host = "www.example3.com" [16/Aug/2022:10:23:09 +0800] "GET http://www.example3.com/ HTTP/1.1" 200 42 "-" "curl/7.29.0" "127.0.0.1" The host is still www.example3.com.so I want to change the URL after remap. -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected]
