[
https://issues.apache.org/jira/browse/TS-3211?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14224816#comment-14224816
]
ASF GitHub Bot commented on TS-3211:
------------------------------------
GitHub user sc0ttbeardsley opened a pull request:
https://github.com/apache/trafficserver/pull/152
[TS-3211] Add support for modifying the SCHEME via header_rewrite
I need a way to rewrite the destination scheme based on a request header.
It looks like it was partially added before (I see URL_QUAL_SCHEME in
statement.h already) but the actual implementation was missing.
Here is an example:
cond %{READ_REQUEST_HDR_HOOK} [AND]
cond %{CLIENT-HEADER:X-Force-Origin-To-Use-HTTPS} /1/
set-destination PORT 443
set-destination SCHEME https
You can merge this pull request into a Git repository by running:
$ git pull https://github.com/sc0ttbeardsley/trafficserver master
Alternatively you can review and apply these changes as the patch at:
https://github.com/apache/trafficserver/pull/152.patch
To close this pull request, make a commit to your master/trunk branch
with (at least) the following in the commit message:
This closes #152
----
commit 5b77907f5d9b8ac82b983dab2f5417bb7579eef9
Author: Scott Beardsley <[email protected]>
Date: 2014-11-25T16:54:11Z
[TS-3211] Add support for modifying the SCHEME via header_rewrite
----
> Add support for modifying the SCHEME via header_rewrite
> -------------------------------------------------------
>
> Key: TS-3211
> URL: https://issues.apache.org/jira/browse/TS-3211
> Project: Traffic Server
> Issue Type: Improvement
> Components: Plugins
> Reporter: Scott Beardsley
>
> I need a way to rewrite the destination scheme based on a request header. It
> looks like it was partially added before (I see URL_QUAL_SCHEME in
> statement.h already) but the actual implementation was missing.
> I will send a PR shortly
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)