Return-Path: X-Original-To: apmail-httpd-modules-dev-archive@minotaur.apache.org Delivered-To: apmail-httpd-modules-dev-archive@minotaur.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 66DDE9986 for ; Fri, 27 Apr 2012 09:40:50 +0000 (UTC) Received: (qmail 70885 invoked by uid 500); 27 Apr 2012 09:40:50 -0000 Delivered-To: apmail-httpd-modules-dev-archive@httpd.apache.org Received: (qmail 70637 invoked by uid 500); 27 Apr 2012 09:40:46 -0000 Mailing-List: contact modules-dev-help@httpd.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: modules-dev@httpd.apache.org Delivered-To: mailing list modules-dev@httpd.apache.org Delivered-To: moderator for modules-dev@httpd.apache.org Received: (qmail 76390 invoked by uid 99); 26 Apr 2012 23:30:52 -0000 X-ASF-Spam-Status: No, hits=0.7 required=5.0 tests=FSL_HELO_NON_FQDN_1,HELO_NO_DOMAIN,SPF_NEUTRAL X-Spam-Check-By: apache.org Received-SPF: neutral (nike.apache.org: local policy) Date: Fri, 27 Apr 2012 00:30:20 +0100 From: Nick Kew To: modules-dev@httpd.apache.org Subject: Re: How can I hook exactly just before the default file handler? Message-ID: <20120427003020.291fe90f@baldur> In-Reply-To: References: X-Mailer: Claws Mail 3.7.4 (GTK+ 2.20.1; i486-pc-linux-gnu) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit On Thu, 26 Apr 2012 14:06:22 -0600 Fred Clift wrote: > Hi all, > > I see that you can specify in the 2nd and 3rd options of the ap_hook_* > calls modules that should be before and after your module. The > documentation states that this controls the sort-order of which modules > execute when. I suspect you're making your problem a whole lot more complex than it need be. > Ideally I'd like to make sure I have a hook after any filename/path > translation is done so I can add a header with reasonable confidence that > nothing will twiddle it before it gets to the default file handler. A fixups hook would be the usual solution to that kind of requirement. I'd > also like to make sure that no interpreters handled my file. That's up to the server admin, not up to any module. If a server admin sets an interpreter (such as PHP) as handler, that's their business. If your module wants to take control of a request then it can set its own handler (or unset the handler to get the default). But then it needs to document that it breaks normal configuration! -- Nick Kew