[
https://issues.apache.org/jira/browse/TS-2531?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13897510#comment-13897510
]
Bryan Call commented on TS-2531:
--------------------------------
The use case is a reverse proxy and a malformed request that has the host in
the request line instead of the Host: header.
Example remap.config:
map http://foo.yahoo.com https://www.yahoo.com
map / https://www.yahoo.com
Request that works:
GET http://foo.yahoo.com HTTP/1.1
HTTP/1.1 200 OK
Request that doesn't:
GET http://bar.yahoo.com HTTP/1.1
HTTP/1.1 404 Not Found
> The default remap rule doesn't match a forward proxy request
> ------------------------------------------------------------
>
> Key: TS-2531
> URL: https://issues.apache.org/jira/browse/TS-2531
> Project: Traffic Server
> Issue Type: Bug
> Components: HTTP
> Reporter: Bryan Call
> Attachments: 0001-fix-bug-TS_2531.patch
>
>
> when doing a forward proxy request it won't math the default rule, but will
> match other rules that specify the hostname.
> Example request:
> GET http://foo.yahoo.com HTTP/1.1
> Host: foo.yahoo.com
> remap.config:
> map / http://www.yahoo.com
> Response:
> HTTP/1.1 404 Not Found
> ...
> ------------
> However, this works:
> remap.config:
> map http://foo.yahoo.com http://www.yahoo.com
--
This message was sent by Atlassian JIRA
(v6.1.5#6160)