Return-Path: X-Original-To: apmail-httpd-dev-archive@www.apache.org Delivered-To: apmail-httpd-dev-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 1DDA11051D for ; Wed, 9 Jul 2014 14:14:50 +0000 (UTC) Received: (qmail 77299 invoked by uid 500); 9 Jul 2014 14:14:48 -0000 Delivered-To: apmail-httpd-dev-archive@httpd.apache.org Received: (qmail 77098 invoked by uid 500); 9 Jul 2014 14:14:48 -0000 Mailing-List: contact dev-help@httpd.apache.org; run by ezmlm Precedence: bulk Reply-To: dev@httpd.apache.org list-help: list-unsubscribe: List-Post: List-Id: Delivered-To: mailing list dev@httpd.apache.org Received: (qmail 76946 invoked by uid 99); 9 Jul 2014 14:14:48 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 09 Jul 2014 14:14:48 +0000 X-ASF-Spam-Status: No, hits=-0.7 required=5.0 tests=RCVD_IN_DNSWL_LOW,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of ylavic.dev@gmail.com designates 209.85.213.180 as permitted sender) Received: from [209.85.213.180] (HELO mail-ig0-f180.google.com) (209.85.213.180) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 09 Jul 2014 14:14:42 +0000 Received: by mail-ig0-f180.google.com with SMTP id l13so1514771iga.13 for ; Wed, 09 Jul 2014 07:14:22 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type:content-transfer-encoding; bh=tpkzMGfTDRTa7k+TEnzGX9WPEzf9QOy4xCcvcGmUbpk=; b=TdtRfbgclt6qiveX+PKKhOlHY7+6eQPv0gltu4Opjxp+8MIPxINnnSEtHTmqXWuh8Q 4+WsvAa6gyC6E02BCSjAGOUO98Ufi0FQXDvqIJ0wEMI73YszQrS86QY/NaqSFvcMTHq5 Bo7fnEZWXKBo5DSNNy7dAvSEv9AINVoL2Cw4BmELoCNjHHSDP1Oe2erw+pVyW4vdQkqw uFx0xHCFSUiXqeRWtSzYH5P+AbnDKO4Ex07cloLmBM0dDzVDYxy70ePhZUukbyAh2if7 Bt4UFvS1uxQQEVf744xakDR5d4HM9PUt9evz68ZvoWQmWTsdR+IgDpcZFG2nEUib4Azl hbLA== MIME-Version: 1.0 X-Received: by 10.42.32.136 with SMTP id e8mr47634275icd.44.1404915262352; Wed, 09 Jul 2014 07:14:22 -0700 (PDT) Received: by 10.42.28.2 with HTTP; Wed, 9 Jul 2014 07:14:22 -0700 (PDT) In-Reply-To: <53BD3D87.6040904@redhat.com> References: <5236FD18.2060904@redhat.com> <53282D57.8090809@redhat.com> <53295C63.1030205@redhat.com> <62604B63-7F47-4F47-B881-2C5E373C265A@jaguNET.com> <53465566.2020009@redhat.com> <53567129.7080406@redhat.com> <24486596-06E8-4478-8B4F-B8717102043B@jaguNET.com> <535F8FF7.3070801@redhat.com> <1BB4810C-FA51-46D6-BD3A-0C8C0597C370@jaguNET.com> <535F9DFC.9010605@redhat.com> <65401870-D6B0-428D-A97B-414E1ED245A9@jaguNET.com> <53BD3D87.6040904@redhat.com> Date: Wed, 9 Jul 2014 16:14:22 +0200 Message-ID: Subject: Re: [PATCH] Fix settings options with ProxyPassMatch From: Yann Ylavic To: httpd Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable X-Virus-Checked: Checked by ClamAV on apache.org On Wed, Jul 9, 2014 at 3:03 PM, Jan Kalu=C5=BEa wrote: > Hi, > > could you please check the patch I've attached to this email? Looks good to me. > > It changes following parts of Yann's patch: > > 1. keep only single name of the worker stored in shared memory. > > 2. when ProxyPassMatch is used, wshared->is_name_matchable =3D 1. > > 3. if is_name_matchable =3D=3D 1, ap_proxy_get_worker() uses > ap_proxy_strcmp_ematch() which treats "$N" as '*'. Much simpler, no need to store the pattern. Would it be possible to handle some escaping character (eg. \), so that $ can be expressed without being interpolated? (There is still the comment in ap_proxy_strcmp_ematch(), but not the code anymore). AFAICT, $ is a legitimate URL character that need not be %-escaped. Regards, Yann.