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 7FA95F721 for ; Thu, 11 Apr 2013 10:30:26 +0000 (UTC) Received: (qmail 73106 invoked by uid 500); 11 Apr 2013 10:30:25 -0000 Delivered-To: apmail-httpd-dev-archive@httpd.apache.org Received: (qmail 72939 invoked by uid 500); 11 Apr 2013 10:30:25 -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 72916 invoked by uid 99); 11 Apr 2013 10:30:24 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 11 Apr 2013 10:30:24 +0000 X-ASF-Spam-Status: No, hits=0.7 required=5.0 tests=SPF_NEUTRAL X-Spam-Check-By: apache.org Received-SPF: neutral (nike.apache.org: local policy) Received: from [194.242.35.75] (HELO dns-factory.at) (194.242.35.75) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 11 Apr 2013 10:30:17 +0000 Received: from [172.17.100.8] apache@gknw.net [62.143.120.100] by dns-factory.at with NetMail SMTP Agent $Revision: 8582 $ on Novell NetWare via secured & encrypted transport (TLS); Thu, 11 Apr 2013 12:29:47 +0200 Message-ID: <51669094.1020500@apache.org> Date: Thu, 11 Apr 2013 12:29:40 +0200 From: Guenter Knauf User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:17.0) Gecko/20130328 Thunderbird/17.0.5 MIME-Version: 1.0 To: dev@httpd.apache.org Subject: Re: svn commit: r1466669 - /httpd/httpd/branches/2.4.x/STATUS References: <20130410210152.1EFA423888FE@eris.apache.org> <5165D7D5.8010200@apache.org> <51668C17.1010208@cord.dk> In-Reply-To: <51668C17.1010208@cord.dk> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: quoted-printable X-Virus-Checked: Checked by ClamAV on apache.org On 11.04.2013 12:10, Daniel Gruno wrote: > On 04/10/2013 11:21 PM, Guenter Knauf wrote: > >> >> - r:expr(string) sample uses %{HTTP_HOST}, but that doesnt work for me= > > This function does work perfectly, on Linux/FreeBSD at least ;) > it uses ap_expr, so whatever that function supports, this should as > well. What I tried on www.humbedooh.com was: > > local match =3D r:expr("%{HTTP_HOST} =3D~ /^www/") > if match then > r:puts("expr matches") > else > r:puts("expr doesn't match") > end > > and I got "expr matches" :) ok, I admit that I didnt test exactly this sample; but the usage of=20 %{HTTP_HOST} there made me think that it will always be expanded, f.e. li= ke: r:puts("HTTP_HOST=3D%{HTTP_HOST}\n") and this didnt work ... G=C3=BCn.