I think you'd setproxy.config.url_remap.pristine_host_hdr 
(https://docs.trafficserver.apache.org/en/latest/admin-guide/files/records.config.en.html#proxy-config-url-remap-pristine-host-hdr)
to 1 (either for that remap rule using the conf_remap plugin 
(https://docs.trafficserver.apache.org/en/latest/admin-guide/plugins/conf_remap.en.html)
 or globally).
Then you'd havechild remap: map http://example.com http://origin.example.com 
(perhaps with @plugin=conf_remap.so 
@pparam=proxy.config.url_remap.pristine_host_hdr=1)child 
parent.configdest_domain=example.com method=get parent="parent1.example.com:80 
and parent remapmap http://example.com http://origin.example.com

miles
 

    On Tuesday, March 8, 2016 4:04 AM, Hiroaki Nakamura <[email protected]> 
wrote:
 

 Hi all,

I tried the example using the Hierarchical Caching
https://docs.trafficserver.apache.org/en/latest/admin-guide/configuration/hierachical-caching.en.html#example

I found the Host header of the request to the origin server become
origin.example.com.
I would like to this to be example.com.
How can I set the Host header value of the request to the origin
server to be the same as the request to the
child cache in hierarchical cashing settings?

Thanks,
Hiroaki


  

Reply via email to