[ https://issues.apache.org/jira/browse/TS-2531?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13898833#comment-13898833 ]
ASF GitHub Bot commented on TS-2531: ------------------------------------ GitHub user sydpz opened a pull request: https://github.com/apache/trafficserver/pull/39 TS-2531: add a nohost_rule check for proxy request This change is used to solve the problem TS-2531. Below is my test method: 1. config remap.config as below: ======================= map / http://127.0.0.1:8885/ ======================= (127.0.0.1:8885 is my backend server.) 2. start this new ATS: ======================= sudo ./bin/traffic_server --httpport 80:fd=7,443:fd=8:ssl ======================= 3. use command "telnet localhost 80" to send a request like TS-2531: ======================= GET http://localhost/test ======================= Now , a 200 OK response returns. You can merge this pull request into a Git repository by running: $ git pull https://github.com/apache/trafficserver master Alternatively you can review and apply these changes as the patch at: https://github.com/apache/trafficserver/pull/39.patch ---- commit 44b5bedb73cee0f020b8020d8649ccc49d6135bf Author: Bing W Wang <bingw...@betweensixteen.corp.gq1.yahoo.com> Date: 2014-02-12T05:40:01Z TS-2531: add a nohost_rule check for proxy request ---- > 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)