On Feb 6, 2013, at 7:12 AM, "Alakkad, Achuth (GE Healthcare)" <achuth.alak...@ge.com> wrote:
> Thanks Leif, can you point me to some lua plugin documentation as > unfortunately I am only getting C++ doc. > > Also I would like to know if I can read the body of the http request too > using Lua to search for keywords. There's no formal documentation, but you can see some examples here: https://github.com/apache/trafficserver/tree/master/plugins/experimental/lua/examples These examples cover all the functionality that is currently supported. For your use case, we would need to add support for transformations, which we don't currently have. I'm slowly working on improving the Lua plugin, but I'd be very happy to help if you were interested in enhancing it. J > > Regards > Achuth > > -----Original Message----- > From: Leif Hedstrom [mailto:zw...@apache.org] > Sent: Tuesday, February 05, 2013 9:31 PM > To: dev@trafficserver.apache.org > Cc: Alakkad, Achuth (GE Healthcare) > Subject: Re: Traffic Server plugin for header based reverse proxying > > On 2/5/13 4:42 AM, Alakkad, Achuth (GE Healthcare) wrote: >> Hi All >> >> >> >> Am trying to setup Apache Traffic Server as a reverse proxy. I was >> successfully able to set it up. >> >> >> >> But now my issue is how to forward the request based on the header >> content of my request. >> >> >> >> I went through the remap and header plugins but not able to relate it >> to my needs. >> >> >> >> Is there any way to create a plugin which will satisfy my need ? >> > > > Yeah, you have two choices: > > 1) Write a plugin in C/C++. You have access to all request headers > easily. > > 2) Write a Lua script using the Lua plugin. > > > -- Leif >