trafficserver-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ezko <erez.ko...@harmonicinc.com>
Subject header rewrite precedance
Date Sun, 18 Nov 2018 13:39:13 GMT
Hi,
ATS 7.1.5 , reverse proxy configuration.
i have a trivial header rewrite config file:

dbg.config
cond %{SEND_RESPONSE_HDR_HOOK}
set-header Custom-Host-IP 1.2.3.4

and another plugin that looks at the requestUrl from the TSRemapRequestInfo:

test.c
// TSRemapRequestInfo *rri 
url = TSUrlStringGet(rri->requestBufp, rri->requestUrl, &url_len); 

when the rewrite plugin is last , everything works as expected , i.e. the
url returns: http://incoming/
map	http://incoming/ http://origin/ @plugin=test @plugin=header_rewrite.so
@pparam=dbg.config

but if header rewrite is first , the url returns the destination , i.e.
http://origin/
map	http://incoming/ http://origin/ @plugin=header_rewrite.so
@pparam=dbg.config @plugin=test

Is header re-write changing the TSRemapRequestInfo ? 
BR,
erez




--
Sent from: http://apache-traffic-server.24303.n7.nabble.com/

Mime
View raw message