Return-Path: Delivered-To: apmail-incubator-trafficserver-user-archive@minotaur.apache.org Received: (qmail 2906 invoked from network); 27 Apr 2010 17:16:16 -0000 Received: from unknown (HELO mail.apache.org) (140.211.11.3) by 140.211.11.9 with SMTP; 27 Apr 2010 17:16:16 -0000 Received: (qmail 66679 invoked by uid 500); 27 Apr 2010 17:16:16 -0000 Delivered-To: apmail-incubator-trafficserver-user-archive@incubator.apache.org Received: (qmail 66589 invoked by uid 500); 27 Apr 2010 17:16:16 -0000 Mailing-List: contact trafficserver-user-help@incubator.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: trafficserver-user@incubator.apache.org Delivered-To: mailing list trafficserver-user@incubator.apache.org Received: (qmail 66581 invoked by uid 99); 27 Apr 2010 17:16:16 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 27 Apr 2010 17:16:16 +0000 X-ASF-Spam-Status: No, hits=0.1 required=10.0 tests=AWL,SPF_NEUTRAL X-Spam-Check-By: apache.org Received-SPF: neutral (athena.apache.org: local policy) Received: from [71.6.165.248] (HELO kramer.ogre.com) (71.6.165.248) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 27 Apr 2010 17:16:09 +0000 Received: from loki.ogre.com (homey.ogre.com [24.56.189.145]) (authenticated bits=0) by kramer.ogre.com (8.14.3/8.14.2) with ESMTP id o3RHFl4p009767 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NOT); Tue, 27 Apr 2010 10:15:47 -0700 X-DKIM: Sendmail DKIM Filter v2.7.2 kramer.ogre.com o3RHFl4p009767 X-DomainKeys: Sendmail DomainKeys Filter v1.0.1 kramer.ogre.com o3RHFl4p009767 Message-ID: <4BD71BC3.7030908@apache.org> Date: Tue, 27 Apr 2010 11:15:47 -0600 From: Leif Hedstrom User-Agent: Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.1.9) Gecko/20100330 Fedora/3.0.4-1.fc12 Thunderbird/3.0.4 MIME-Version: 1.0 To: trafficserver-user@incubator.apache.org CC: Rakesh Aggarwal Subject: Re: reverse proxy configuration References: <674707.2507.qm@web81907.mail.mud.yahoo.com> <4BD64CB3.9090102@apache.org> <854519.36737.qm@web81903.mail.mud.yahoo.com> In-Reply-To: <854519.36737.qm@web81903.mail.mud.yahoo.com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit On 04/27/2010 10:54 AM, Rakesh Aggarwal wrote: > Hi All! > > I am trying to configure a reverse proxy using the TS Admin's Guide. > > The /usr/local/etc/trafficserver/records.config file already had the reverse_proxy enabled. I added the > following entry to /usr/local/etc/trafficserver/remap.config file : > > reverse_map http://localhost:9999/ http://localhost:8080/ > You most likely want "map" and not "reverse_map". The "reverse_map" rules are for handling things like reversing 302 redirect URLs generated from the Origin, so that they point back through the proxy again. Assuming your "origin" is on 9999, the rule should be map http://localhost:8080/ http://localhost:9999/ (you might still want that reverse_map rule as well, to handle rewriting any Location: headers in responses from the origin). I hope this helps. -- Leif