Return-Path: Delivered-To: apmail-trafficserver-users-archive@www.apache.org Received: (qmail 15496 invoked from network); 1 Sep 2010 19:53:05 -0000 Received: from unknown (HELO mail.apache.org) (140.211.11.3) by 140.211.11.9 with SMTP; 1 Sep 2010 19:53:05 -0000 Received: (qmail 24359 invoked by uid 500); 1 Sep 2010 19:53:05 -0000 Delivered-To: apmail-trafficserver-users-archive@trafficserver.apache.org Received: (qmail 24228 invoked by uid 500); 1 Sep 2010 19:53:04 -0000 Mailing-List: contact users-help@trafficserver.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: users@trafficserver.apache.org Delivered-To: mailing list users@trafficserver.apache.org Received: (qmail 24220 invoked by uid 99); 1 Sep 2010 19:53:04 -0000 Received: from Unknown (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 01 Sep 2010 19:53:04 +0000 X-ASF-Spam-Status: No, hits=0.0 required=10.0 tests=NORMAL_HTTP_TO_IP,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: local policy) Received: from [66.119.181.39] (HELO BBAnalyzer5.backbone.local) (66.119.181.39) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 01 Sep 2010 19:52:42 +0000 Received: from BBAnalyzer5.backbone.local (127.0.0.1) by BBAnalyzer5.backbone.local (MlfMTA v3.2r9) id hfqngi0171sa for ; Wed, 1 Sep 2010 12:52:20 -0700 (envelope-from ) Received: from bbhubnlb1.backbone.local ([10.1.154.112]) by BBAnalyzer5.backbone.local (SonicWALL 7.2.1.2843) with ESMTP (AIO); Wed, 01 Sep 2010 12:52:19 -0700 Received: from BBMBX.backbone.local ([fe80::3564:fee0:3975:fdc2]) by BBHub002.backbone.local ([::1]) with mapi; Wed, 1 Sep 2010 12:52:20 -0700 From: Greg Smolyn To: "users@trafficserver.apache.org" Date: Wed, 1 Sep 2010 12:52:19 -0700 Subject: Preventing host headers from changing in forward proxy mode Thread-Topic: Preventing host headers from changing in forward proxy mode Thread-Index: ActKDy+1QuNDD5F6QEaSxW3+YaW5+g== Message-ID: <994E05D2-4BCA-41E0-93ED-19969FCD4875@strangeloopnetworks.com> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: acceptlanguage: en-US x-tm-as-product-ver: SMEX-8.0.0.4125-6.000.1038-17524.000 x-tm-as-result: No--45.733700-8.000000-31 x-tm-as-user-approved-sender: No x-tm-as-user-blocked-sender: No Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-Mlf-Version: 7.2.1.2843 X-Mlf-UniqueId: o201009011952190205201 X-Virus-Checked: Checked by ClamAV on apache.org Hi,=20 we've decided to use traffic server as a cache for a background process tha= t does a bunch of fetching. Admittedly we're doing something a bit non sta= ndard, but we're having troubles trying to configure the system such that i= t doesn't modify host headers on us. Here's the scenario: - trafficserver is listening on 127.0.0.1:8080 - we have a number of local VIPs on our machine that we use as aliases for = real backend servers, so, if we want to fetch http://www.foo.com/test.jpg, = we would go through it's VIP at, say, 10.0.1.1 What happens with trafficserver in the mix is: - we open TCP connection to 127.0.0.1:8080 and does a GET http://10.0.1.1/t= est.jpg with Host: www.foo.com - trafficserver then requests on 10.0.1.1 a GET /test.jpg, with Host: 10.0.= 1.1 What we really need is the original Host header in the proxied request. We've tried turning on proxy.config.url_remap.pristine_host_hdr (setting it= to 1), however this does nothing. Any suggestions? Or are we going to have to write a plugin? And if so, whi= ch is a good plugin sample to start from? Thanks! -greg