[ 
https://issues.apache.org/jira/browse/TS-4080?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15059033#comment-15059033
 ] 

Kit Chan commented on TS-4080:
------------------------------

Can you add more info with a more elaborate example? e.g. 

Client -> proxy 1 -> origin

and you want the lua script in proxy 1 to allow you to change it to 

Client -> proxy 1 -> proxy 2 -> origin

Is that what you mean? In that case. you can do a 
ts.client_request.set_url_host(). You can follow the example here 
https://docs.trafficserver.apache.org/en/latest/admin-guide/plugins/ts_lua.en.html#ts-client-request-set-url-host


> Lua Ability return parent proxy 
> --------------------------------
>
>                 Key: TS-4080
>                 URL: https://issues.apache.org/jira/browse/TS-4080
>             Project: Traffic Server
>          Issue Type: Wish
>          Components: Lua, Parent Proxy
>            Reporter: Faysal Banna
>            Assignee: Kit Chan
>
> Good day sir.
> is it possible add a functionality to lua extension so that the request be 
> supplied to parent proxy ; add a directive to explicitly service the request 
> being examined in lua script to go through a parent proxy whenever possible ? 
> something like ts_parent_proxy="x.y.z.c:8080" 
> much regards 



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Reply via email to