Will try this. Thanks! On Wed, Sep 2, 2015 at 11:05 AM, Sudheer Vinukonda <[email protected]> wrote:
> Not sure if you have tried it, but, regex_remap supports a > "no-query-string" param, which allows you to simply skip the query > component.. > > > > https://docs.trafficserver.apache.org/en/latest/reference/plugins/regex_remap.en.html > > > "By default, the query string is part of the string that is matched again, > to turn this off use the option ‘no-query-string’, e.g. > > ... @pparam=maps.reg @pparam=no-query-string" > > > > Thanks, > > Sudheer > > On Wednesday, September 2, 2015 7:56 AM, Steve Malenfant < > [email protected]> wrote: > > > > Haven't tested with lua. We noticed the behavior changes when regex_remap > is used with header_rewrite. > > regex_remap by itself $p is the "original request port" > regex_remap with header_rewrite $p is the "origin port" > > We investigating this at the moment. Would be nice to have regex_remap > support the different type or components from an uri. > > https://en.wikipedia.org/wiki/Uniform_resource_identifier > > "authority part" for example to keep username:[email protected]:123 > or even "hierarchical part" so would just be easier to drop query strings. > > > On Tue, Sep 1, 2015 at 8:57 AM, Jason Strongman < > [email protected]> wrote: > > 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 <[email protected]> > 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 > >> > >> > >> > >> > >> > > >
