trafficserver-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Leif Hedstrom <zw...@apache.org>
Subject Re: a question
Date Tue, 31 May 2011 15:27:47 GMT
On 05/31/2011 09:02 AM, Belkacem wrote:
> Hi everyone,
> Thanks for the new release, I'm testing it.
> I have a little question:
> lets assume that my remap.config file contains this line
>
> regex_map http://(.*) http://$1.test.com
>
> when traffic server sends the request to the origin server, what's the content of the
host field in the sent request?

Using the default configs,it would be the Host: $1 (the incoming Host: 
header). You can change that with

     CONFIG proxy.config.url_remap.pristine_host_hdr INT 0


Then the Host: header becomes $1.test.com.


-- Leif

Mime
View raw message