ezko
2018-11-18 13:39:13 UTC
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/
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/