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 23E849897 for ; Mon, 23 Jan 2012 03:46:14 +0000 (UTC) Received: (qmail 62559 invoked by uid 500); 23 Jan 2012 03:46:13 -0000 Delivered-To: apmail-httpd-dev-archive@httpd.apache.org Received: (qmail 61763 invoked by uid 500); 23 Jan 2012 03:46:04 -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 61728 invoked by uid 99); 23 Jan 2012 03:45:57 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 23 Jan 2012 03:45:57 +0000 X-ASF-Spam-Status: No, hits=0.7 required=5.0 tests=RCVD_IN_DNSWL_NONE,SPF_NEUTRAL X-Spam-Check-By: apache.org Received-SPF: neutral (athena.apache.org: local policy) Received: from [64.202.165.30] (HELO smtpauth19.prod.mesa1.secureserver.net) (64.202.165.30) by apache.org (qpsmtpd/0.29) with SMTP; Mon, 23 Jan 2012 03:45:48 +0000 Received: (qmail 8790 invoked from network); 23 Jan 2012 03:45:26 -0000 Received: from unknown (76.252.112.72) by smtpauth19.prod.mesa1.secureserver.net (64.202.165.30) with ESMTP; 23 Jan 2012 03:45:26 -0000 Message-ID: <4F1CD7D5.6060105@rowe-clan.net> Date: Sun, 22 Jan 2012 21:45:25 -0600 From: "William A. Rowe Jr." User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:9.0) Gecko/20111222 Thunderbird/9.0.1 MIME-Version: 1.0 To: dev@httpd.apache.org CC: Stefan Fritsch Subject: Re: Include strangeness References: <201201221914.29589.sf@sfritsch.de> In-Reply-To: <201201221914.29589.sf@sfritsch.de> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit On 1/22/2012 12:14 PM, Stefan Fritsch wrote: > Apart from the fact that the docs to Include do not match the code and > IncludeOptional is not documented at all, the way Include interacts > with directory wildcards is a bit strange: > > I have conf/extra/httpd-userdir.conf and a directory conf/original > (without httpd-userdir.conf in it). This makes > > > Include conf/*/httpd-userdir.conf > > fail with > > httpd: Syntax error on line 481 of /usr/local/apache2/conf/httpd.conf: > Could not open configuration file > /usr/local/apache2/conf/original/httpd-userdir.conf: No such file or > directory > > even though the whole Include statement does match one file. I think > this makes directory wildcards a lot less useful with Include. Is this > intentional or an implementation quirk? Of course, one can always use > IncludeOptional... That is a bug. Any pattern matching at least one file is a success for either Include or IncludeOptional. Any pattern matching no files whatsoever should fail the Include statement, while IncludeOptional would keep right on truckin with no emits. That's what the principal of least astonishment would suggest.