Sorry. i missed "rules.h" sorry to bother you. 

I'll try it. Thanks.

-----Original Message-----
From: 오재경 [mailto:jaekyung...@nimbusnetworks.co.kr] 
Sent: Sunday, June 10, 2012 11:30 AM
To: 'Leif Hedstrom'; dev@trafficserver.apache.org
Subject: RE: a plugin to specific domain. need helps.

I've overviewed the source code and it seems I have to develop the plugin
in 3.1.4 or higher of traffic server.

A new global variable "Rules", I can't find it in 3.0.4 on which I'm
working.

Is it possible to develop a plugin which can do both a transform and a
remap on 3.0.4 without "Rules"?

or to Make a header-filter style plugin should I move to 3.1.4 or higher?

Thanks.


-----Original Message-----
From: Leif Hedstrom [mailto:zw...@apache.org]
Sent: Friday, June 08, 2012 1:15 PM
To: dev@trafficserver.apache.org
Cc: 오재경
Subject: Re: a plugin to specific domain. need helps.

On 6/7/12 7:24 PM, 오재경 wrote:
> hello. This is jay and it’s been 2 weeks since I started to work on 
> traffic server.
>
> I’m working on a throttling plugin. can I assign the plugin to a 
> specific domain like remap plugin?
>
> For example, a throttle plugin serves www.exampleA.com and another 
> plugin serves www.exampleB.com.
>
>

The easiest is to make your plugin both a transform and a remap plugin.
For an example how to do that, look at the header_filter plugin. It is used
to basically "activate" a hook at a later stage, triggered by which
remap.config rule matched.

I think that's what you are asking to do ?

-- Leif

Reply via email to