Return-Path: X-Original-To: apmail-tomcat-dev-archive@www.apache.org Delivered-To: apmail-tomcat-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 95C8B76E6 for ; Tue, 27 Sep 2011 01:13:13 +0000 (UTC) Received: (qmail 8309 invoked by uid 500); 27 Sep 2011 01:13:12 -0000 Delivered-To: apmail-tomcat-dev-archive@tomcat.apache.org Received: (qmail 8250 invoked by uid 500); 27 Sep 2011 01:13:12 -0000 Mailing-List: contact dev-help@tomcat.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: "Tomcat Developers List" Delivered-To: mailing list dev@tomcat.apache.org Received: (qmail 8241 invoked by uid 99); 27 Sep 2011 01:13:12 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 27 Sep 2011 01:13:12 +0000 X-ASF-Spam-Status: No, hits=-2000.0 required=5.0 tests=ALL_TRUSTED X-Spam-Check-By: apache.org Received: from [140.211.11.115] (HELO eir.zones.apache.org) (140.211.11.115) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 27 Sep 2011 01:13:10 +0000 Received: by eir.zones.apache.org (Postfix, from userid 80) id E1CC24EA47; Tue, 27 Sep 2011 01:12:48 +0000 (UTC) From: bugzilla@apache.org To: dev@tomcat.apache.org Subject: DO NOT REPLY [Bug 18500] Host aliases to match by regular expression Date: Tue, 27 Sep 2011 01:12:47 +0000 X-Bugzilla-Reason: AssignedTo X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: Tomcat 7 X-Bugzilla-Component: Catalina X-Bugzilla-Keywords: X-Bugzilla-Severity: enhancement X-Bugzilla-Who: knst.kolinko@gmail.com X-Bugzilla-Status: NEW X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: dev@tomcat.apache.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Changed-Fields: Message-ID: In-Reply-To: References: X-Bugzilla-URL: https://issues.apache.org/bugzilla/ Auto-Submitted: auto-generated Content-Type: text/plain; charset="UTF-8" MIME-Version: 1.0 X-Virus-Checked: Checked by ClamAV on apache.org https://issues.apache.org/bugzilla/show_bug.cgi?id=18500 --- Comment #10 from Konstantin Kolinko 2011-09-27 01:12:47 UTC --- (In reply to comment #9) > I just wouldn't watch to mix-and-match too many name-matching styles or things > are going to get seriously ridiculous (exact-match, then suffix-match, then > regex-match, then what next?). > > The question is how many other strategies are worth implementing /after/ an > exact-match is not found? I think it is just a single strategy: iterate linearly over list, trying each candidate whether it matches or not. The candidate implements its matching algorithm by itself. For value written as *.foo it can be suffix matching, and for /foo/ it can be Regexp matching. Or implement separate element. I do not see any alternative to linear search here. The search order probably depends on the order in web.xml (and will change if some hosts are stopped and started again through JMX or host-manager). -- Configure bugmail: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are the assignee for the bug. --------------------------------------------------------------------- To unsubscribe, e-mail: dev-unsubscribe@tomcat.apache.org For additional commands, e-mail: dev-help@tomcat.apache.org