ot; logs seem indicate
> that ATS itself is acting as parent/origin for some urls, maybe you should
> take a deeper look at your config files.
>
>
>
> -Original Message-
> From: Dk Jack [mailto:dnj0...@gmail.com]
> Sent: lunedì 14 marzo 2016 20:15
> To: dev@traffic
edì 14 marzo 2016 20:15
To: dev@trafficserver.apache.org; Alan Carroll
Subject: Re: Intercept Plugin
Hi Alan,
I tried to add a remap rule like this:
regex_map http://(.*)/(.*) http://$1/$2
I still get the following error:
20160314.19h04m03s RESPONSE: sent 127.0.0.1 status 404 (Not Found on
Ac
I wouldn't bother with that complex of a remap rule - just turn off remap
required entirely.
http://trafficserver.readthedocs.org/en/6.0.x/reference/configuration/records.config.en.html#proxy-config-url-remap-remap-required
If that doesn't work you'll need to turn on debug tags "http|remap" to se
is there another way where the TS (or plugin in TS) can act as a server?
thx.
On Mon, Mar 14, 2016 at 12:15 PM, Dk Jack wrote:
> Hi Alan,
> I tried to add a remap rule like this:
>
> regex_map http://(.*)/(.*) http://$1/$2
>
> I still get the following error:
>
> 20160314.19h04m03s RESPONSE: sen
Hi Alan,
I tried to add a remap rule like this:
regex_map http://(.*)/(.*) http://$1/$2
I still get the following error:
20160314.19h04m03s RESPONSE: sent 127.0.0.1 status 404 (Not Found on
Accelerator) for 'http://.'
So I tried your suggestion #2 and set the remap_required to 0 (didn't wan
Traffic Server requires either (1) a remap rule or (2) disabling remap_required
in records.config. This is not specific to the intercept plugin. If you don't
want (2) you can always add an identity remap to remap.config and map the URL
to itself.
no luck. I am still stuck with the same error...
20160314.02h43m20s RESPONSE: sent 127.0.0.1 status 404 (Not Found on
Accelerator) for 'http://...'
Since it cannot find a remap rule, it never invokes
the HOOK_SEND_REQUEST_HEADERS hook.
As a result, my custom plugin never gets invoked. I was runni
The example I was referring to is here:
https://github.com/apache/trafficserver/blob/master/lib/atscppapi/examples/customresponse/CustomResponse.cc
In CustomResponseTransactionPlugin::handleSendResponseHeaders() you can
manipulate the response in any other ways you want, in this example it
changes
ok. I'll give it a try and get back. Thanks.
On Sun, Mar 13, 2016 at 6:22 PM, Brian Geffon wrote:
> Take a look at the example, you can set the body, status code, headers,
> basically anything you want. The only reason you might want to use an
> intercept plugin is it you wanted to stream a re
Take a look at the example, you can set the body, status code, headers,
basically anything you want. The only reason you might want to use an
intercept plugin is it you wanted to stream a response.
Brian
On Monday, March 14, 2016, Dk Jack wrote:
> custom error message plugin doesn't seem to inc
custom error message plugin doesn't seem to include body. I wanted to
include body as well...
Bhasker.
On Sun, Mar 13, 2016 at 6:01 PM, Brian Geffon wrote:
> I would suggest looking at the custom error response plugin in the examples
> folder, it will give you same result and it's much easier,
I would suggest looking at the custom error response plugin in the examples
folder, it will give you same result and it's much easier,
Brian
On Monday, March 14, 2016, Dk Jack wrote:
> Hi,
> I am using atscppapi intercept Plugin. Does it still require a remap rule
> if I am using SERVER_INTERCE
12 matches
Mail list logo