[
https://issues.apache.org/jira/browse/TS-110?focusedWorklogId=26314&page=com.atlassian.jira.plugin.system.issuetabpanels:worklog-tabpanel#worklog-26314
]
ASF GitHub Bot logged work on TS-110:
-------------------------------------
Author: ASF GitHub Bot
Created on: 10/Aug/16 23:44
Start Date: 10/Aug/16 23:44
Worklog Time Spent: 10m
Work Description: Github user zwoop commented on a diff in the pull
request:
https://github.com/apache/trafficserver/pull/848#discussion_r74351692
--- Diff: plugins/regex_remap/README ---
@@ -53,11 +54,19 @@ to turn this off use the option 'no-query-string', e.g.
... @pparam=maps.reg @pparam=no-query-string
-Finally, you can also include the matrix parameters in the string, using
the
+You can also include the matrix parameters in the string, using the
option 'matrix-parameters', e.g.
... @pparam=maps.reg @pparam=matrix-parameters
+Finally, to match on the host as well, use the option 'host', e.g. ::
+
+ ... @pparam=maps.reg @pparam=host
+
+With this enabled, the string that you will need to match will look like
+
+ //host/path?query=bar
+
Note that the path to the plugin must be absolute, and by default it is
--- End diff --
I wonder if it's time to remove this README, now that we have good
documentation on docs.trafficserver. Not necessarily for this PR, but maybe
file a separate Jira/PR to just nuke this README? Duplicated docs just makes
life miserable.
Issue Time Tracking
-------------------
Worklog Id: (was: 26314)
Time Spent: 20m (was: 10m)
> Improve regex remap to allow substitutions in path field
> --------------------------------------------------------
>
> Key: TS-110
> URL: https://issues.apache.org/jira/browse/TS-110
> Project: Traffic Server
> Issue Type: Improvement
> Components: Core
> Affects Versions: 3.0.0
> Reporter: Manjesh Nilange
> Priority: Minor
> Fix For: sometime
>
> Time Spent: 20m
> Remaining Estimate: 0h
>
> Currently, regex support covers only the host field of the remap rules. It'd
> be nice to extend this to allow substitutions into the path field as well.
> This will allow rules like:
> regex_map http://www.example-(.*).com/ http://real-example.com/$1
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)