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 0646A10BC7 for ; Mon, 27 Jan 2014 08:30:04 +0000 (UTC) Received: (qmail 95297 invoked by uid 500); 27 Jan 2014 08:30:02 -0000 Delivered-To: apmail-httpd-dev-archive@httpd.apache.org Received: (qmail 94581 invoked by uid 500); 27 Jan 2014 08:29:57 -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 94486 invoked by uid 99); 27 Jan 2014 08:29:54 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 27 Jan 2014 08:29:54 +0000 X-ASF-Spam-Status: No, hits=-0.0 required=5.0 tests=SPF_HELO_PASS,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: domain of minfrin@sharp.fm designates 174.143.229.200 as permitted sender) Received: from [174.143.229.200] (HELO chandler.sharp.fm) (174.143.229.200) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 27 Jan 2014 08:29:47 +0000 Received: from chandler.sharp.fm (localhost [127.0.0.1]) by chandler.sharp.fm (Postfix) with ESMTP id 99719138027 for ; Mon, 27 Jan 2014 02:29:26 -0600 (CST) Received: from [192.168.88.207] (pepperpotdsl.claranet.co.uk [217.158.253.219]) (using TLSv1 with cipher AES128-SHA (128/128 bits)) (Client did not present a certificate) (Authenticated sender: minfrin@sharp.fm) by chandler.sharp.fm (Postfix) with ESMTP id 5369D138001 for ; Mon, 27 Jan 2014 02:29:26 -0600 (CST) Content-Type: text/plain; charset=windows-1252 Mime-Version: 1.0 (Mac OS X Mail 6.6 \(1510\)) Subject: Re: Simplifying mod_alias From: Graham Leggett In-Reply-To: Date: Mon, 27 Jan 2014 10:29:25 +0200 Content-Transfer-Encoding: quoted-printable Message-Id: <996CF407-74A6-4C82-BC48-EDAFFEA361EA@sharp.fm> References: <8328F394-A5B6-4EDB-9C31-66C45C488992@sharp.fm> <52E589DB.6050202@thelounge.net> To: dev@httpd.apache.org X-Mailer: Apple Mail (2.1510) X-Virus-Scanned: ClamAV using ClamSMTP X-Virus-Checked: Checked by ClamAV on apache.org On 27 Jan 2014, at 9:58 AM, Thomas Eckert = wrote: > When doing this please keep in mind there is a huge amount of users = out there who are not developers and who will struggle with something = like >=20 > > [^/]+)> > > Alias /var/lib/%{env:MATCH_BAR}/baz > > =85stuff... > > Why would they struggle any more than this, which is what they would = need to do for the same config today? AliasMatch ^/foo/(?[^/]+) /var/lib/${1}/baz [^/]+)> =85stuff... > As long as they are reusing the same code under the hood, I don't = think there is anything wrong with having redundant directives whose = only purpose is to have easier-to-read configurations. They're not reusing the same code under the hood, the code that performs = the Location handling and the code that matches the Aliases are = different code, and in today's code, the Alias is almost always followed = by a Location directive matching the same URL space. That said there are two problems being solved here. One is a performance problem, which is a nice but not critical. The = second more important problem is that I am hearing from more and more = people that httpd has too many directives - they look at httpd and they = don't know where to start. Existing configurations as I said will still work, they would just be = deprecated. But the long term goal would be to remove the duplicated = functionality and slim down the server, with a trimmer, cleaner server = in a v3.x timeframe. Regards, Graham --