trafficserver-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Jason Strongman <jasonstrongman2...@gmail.com>
Subject Re: regex_remap and $p
Date Tue, 01 Sep 2015 12:57:46 GMT
Steve,

Is there any benefit to using this plugin, as opposed to processing
via the lua plugin?
Any performance concerns as load increases?



On Fri, Aug 28, 2015 at 10:02 AM, Steve Malenfant <smalenfant@gmail.com> wrote:
> Some looked at the code, and seems like this "$p" applies to the "request
> URL" which would be the left side of the remap line. Although from my
> testing, it applies to the origin port (right side). What is the
> expectation?
>
> https://docs.trafficserver.apache.org/en/latest/reference/configuration/remap.config.en.html
>
> $p     - The original port number
>
> The goal here is to to remove any query string and keep the origin port
> defined in the remap line.
>
> Discussion available here :
> https://github.com/Comcast/traffic_control/pull/297
>
> Some quick details about the configuration...
>
> remap.config :
>
> map http://edge01/ http://origin:8081/ @plugin=regex_remap.so
> @pparam=drop_qstring.config
>
> drop_qstring.config :
>
> /([^?]+) $s://$t:$p/$1
>
> Old drop_qstring.config (which drops the origin port) :
>
> /([^?]+) $s://$t/$1
>
> Thanks,
>
> Steve
>
>
>
>
>

Mime
View raw message