Return-Path: X-Original-To: archive-asf-public-internal@cust-asf2.ponee.io Delivered-To: archive-asf-public-internal@cust-asf2.ponee.io Received: from cust-asf.ponee.io (cust-asf.ponee.io [163.172.22.183]) by cust-asf2.ponee.io (Postfix) with ESMTP id 71A79200C68 for ; Wed, 3 May 2017 19:26:54 +0200 (CEST) Received: by cust-asf.ponee.io (Postfix) id 6FE90160BB5; Wed, 3 May 2017 17:26:54 +0000 (UTC) Delivered-To: archive-asf-public@cust-asf.ponee.io Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by cust-asf.ponee.io (Postfix) with SMTP id B51F6160BA1 for ; Wed, 3 May 2017 19:26:53 +0200 (CEST) Received: (qmail 13922 invoked by uid 500); 3 May 2017 17:26:47 -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 13912 invoked by uid 99); 3 May 2017 17:26:47 -0000 Received: from pnap-us-west-generic-nat.apache.org (HELO spamd2-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 03 May 2017 17:26:47 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd2-us-west.apache.org (ASF Mail Server at spamd2-us-west.apache.org) with ESMTP id 58EBA1A02BF for ; Wed, 3 May 2017 17:26:47 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd2-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: 0.38 X-Spam-Level: X-Spam-Status: No, score=0.38 tagged_above=-999 required=6.31 tests=[DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, RCVD_IN_DNSWL_NONE=-0.0001, RCVD_IN_MSPIKE_H3=-0.01, RCVD_IN_MSPIKE_WL=-0.01, RCVD_IN_SORBS_SPAM=0.5, SPF_PASS=-0.001, URIBL_BLOCKED=0.001] autolearn=disabled Authentication-Results: spamd2-us-west.apache.org (amavisd-new); dkim=pass (2048-bit key) header.d=gmail.com Received: from mx1-lw-us.apache.org ([10.40.0.8]) by localhost (spamd2-us-west.apache.org [10.40.0.9]) (amavisd-new, port 10024) with ESMTP id ou9g0lCoi6h9 for ; Wed, 3 May 2017 17:26:45 +0000 (UTC) Received: from mail-it0-f43.google.com (mail-it0-f43.google.com [209.85.214.43]) by mx1-lw-us.apache.org (ASF Mail Server at mx1-lw-us.apache.org) with ESMTPS id 1B4185F3BB for ; Wed, 3 May 2017 17:26:45 +0000 (UTC) Received: by mail-it0-f43.google.com with SMTP id e65so42263130ita.1 for ; Wed, 03 May 2017 10:26:45 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :content-transfer-encoding; bh=IU9Ztpo0R96VVtibA6F/CsVPafqkPH7lE0qp/evMdPU=; b=BRmDZRmQIxcYqbZKIIamM1RaPDITjV1wv8N6mgvhP1yquJCCqXEAGSAtKtCVYnDH18 6uYmFKb7DbZnH4zgincmxNE+xfV7JLYFIO4CWHreMcGwEN0piVBbHr8nO5u+ZeolASv6 OesGs7AcEwwu0kouqOFlH2LPcCwAhKn2yAeseaF7p0YjIIW8VaiHkg74c16H1vD22CcT iSsD30prONJyC0oauLn/RYDE15JvgJ2UZfkSZ2Ph+gS7s8QmXkA7DHXEaScJ9ml6/Lji i0JEx+LUblWlRSK6FwBGWQsgul5bM8/XBK5wndOnbnVLaWnvkyAG/s/6pvR2GWqsR+4+ EEcw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to:content-transfer-encoding; bh=IU9Ztpo0R96VVtibA6F/CsVPafqkPH7lE0qp/evMdPU=; b=aj/Pb6Ee+S8dX9eO+OTo0ZcJAcUaxGgDIkf8mHyOXdUex+vDAwuzY5wrVDiSSBSTK5 Hd7LTVHX60W4UvGGoA5fQhDwsuCuESW553wgchYk8cbp6phH5TBLlnz+ggdRM+E2A9g7 rurc8EputEQi1KrgqdBz+CPvQvGpQM4p6bzxEDrHru1i60VZHti0qMtxb9VVnIzR/uDP MQqJl6ypFbNYZ+waQ9HhBgUmOXKwE5Ji2rk79cQgHA/oU5mUj5XOQ7JcRegFtxnSVLTd M5b4TYtyQpCxHRbdmDJ5YEwm8W5ZijCe5XVpnQcvcvg1X9P87s8LBVrVatpgM+Ox0oiv MI7g== X-Gm-Message-State: AN3rC/6BKxkIccrJDVZCrCwxUQexGZelXEIhXGkxXZptjt9+NyZzzH// J5oH334pMNME3lgneYLsLPDKrCZ+JBmW X-Received: by 10.36.57.78 with SMTP id l75mr1896187ita.60.1493832404455; Wed, 03 May 2017 10:26:44 -0700 (PDT) MIME-Version: 1.0 Received: by 10.107.156.212 with HTTP; Wed, 3 May 2017 10:26:44 -0700 (PDT) In-Reply-To: References: From: Shu Kit Chan Date: Wed, 3 May 2017 10:26:44 -0700 Message-ID: Subject: Re: map depending on HTTP header To: "users@trafficserver.apache.org" Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable archived-at: Wed, 03 May 2017 17:26:54 -0000 You can try the header_rewrite plugin https://docs.trafficserver.apache.org/en/latest/admin-guide/plugins/header_= rewrite.en.html I don't know too well whether TS 4.2.3's header_rewrite plugin has enough features for your needs. But I believe the latest ones does have everything you need. You can also use the ts_lua plugin as well if you are using later version of trafficserver. Thanks. On Wed, May 3, 2017 at 8:09 AM, Jon Fullmer wrote: > (Sorry about the previous message) > > Currently using TrafficServer 4.2.3 on CentOS (happy to upgrade, if later > versions provide the needed feature). > > I want to be able to map the backend call based on the source IP address = of > the caller and the contents of a custom HTTP header. > > For example (the curly braces represent something that doesn=E2=80=99t ex= ist): > > regex_map http://(.*)/ > http://{client-ip-address}:{contents-of-custom-HTTP-header)/ > > Do such macros exist? > > Thanks in advance. > > - Jon