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

----

Reply via email to