From users-return-1973-apmail-trafficserver-users-archive=trafficserver.apache.org@trafficserver.apache.org Fri Aug 10 20:03:34 2012 Return-Path: X-Original-To: apmail-trafficserver-users-archive@www.apache.org Delivered-To: apmail-trafficserver-users-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 609FFD2D7 for ; Fri, 10 Aug 2012 20:03:34 +0000 (UTC) Received: (qmail 51417 invoked by uid 500); 10 Aug 2012 20:03:34 -0000 Delivered-To: apmail-trafficserver-users-archive@trafficserver.apache.org Received: (qmail 51317 invoked by uid 500); 10 Aug 2012 20:03:33 -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 51302 invoked by uid 99); 10 Aug 2012 20:03:33 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 10 Aug 2012 20:03:33 +0000 X-ASF-Spam-Status: No, hits=0.7 required=5.0 tests=SPF_NEUTRAL,WEIRD_PORT X-Spam-Check-By: apache.org Received-SPF: neutral (nike.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; Fri, 10 Aug 2012 20:03:25 +0000 Received: from zaboo.ogre.com (cabin.ogre.com [24.9.49.85]) (authenticated bits=0) by kramer.ogre.com (8.14.5/8.14.5) with ESMTP id q7AK2v3V021681 (version=TLSv1/SSLv3 cipher=DHE-RSA-CAMELLIA256-SHA bits=256 verify=NOT); Fri, 10 Aug 2012 13:02:58 -0700 Message-ID: <502568F1.6040507@apache.org> Date: Fri, 10 Aug 2012 14:02:57 -0600 From: Leif Hedstrom User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:14.0) Gecko/20120717 Thunderbird/14.0 MIME-Version: 1.0 To: users@trafficserver.apache.org CC: "adi.siswanto" Subject: Re: subdomain References: <1344523372.25730.4.camel@adi-laptop> <0d8a0118439cea377e13613e220f7ec4@mail.gmail.com> <1344524578.25730.7.camel@adi-laptop> In-Reply-To: <1344524578.25730.7.camel@adi-laptop> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit On 08/09/2012 09:02 AM, adi.siswanto wrote: > currently I only tried for > map http://*.bar.com/ http://bar.com:8001/* > reverse_map http://bar.com:8001/* http://*.bar.com/ > This is not valid syntax. Read the docs, or the example from the default remap.config. And yes, if you really want to match on *.bar.com, you should either use regex map, or map on the wildcard (/). E.g. the following would probably do what you want (assuming you only have bar.com): map / http://bar.com:8001 -- leif