Return-Path: X-Original-To: archive-asf-public-internal@cust-asf2.ponee.io Delivered-To: archive-asf-public-internal@cust-asf2.ponee.io Received: from cust-asf.ponee.io (cust-asf.ponee.io [163.172.22.183]) by cust-asf2.ponee.io (Postfix) with ESMTP id ACF98200B64 for ; Tue, 19 Jul 2016 08:22:08 +0200 (CEST) Received: by cust-asf.ponee.io (Postfix) id AB87D160A65; Tue, 19 Jul 2016 06:22:08 +0000 (UTC) Delivered-To: archive-asf-public@cust-asf.ponee.io Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by cust-asf.ponee.io (Postfix) with SMTP id F2E7F160A5D for ; Tue, 19 Jul 2016 08:22:07 +0200 (CEST) Received: (qmail 44217 invoked by uid 500); 19 Jul 2016 06:22:06 -0000 Mailing-List: contact users-help@httpd.apache.org; run by ezmlm Precedence: bulk Reply-To: users@httpd.apache.org list-help: list-unsubscribe: List-Post: List-Id: Delivered-To: mailing list users@httpd.apache.org Received: (qmail 44207 invoked by uid 99); 19 Jul 2016 06:22:06 -0000 Received: from pnap-us-west-generic-nat.apache.org (HELO spamd1-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 19 Jul 2016 06:22:06 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd1-us-west.apache.org (ASF Mail Server at spamd1-us-west.apache.org) with ESMTP id 2B95DC6F60 for ; Tue, 19 Jul 2016 06:22:06 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd1-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: -3.578 X-Spam-Level: X-Spam-Status: No, score=-3.578 tagged_above=-999 required=6.31 tests=[RCVD_IN_DNSWL_MED=-2.3, RP_MATCHES_RCVD=-1.287, SPF_PASS=-0.001, T_HK_NAME_DR=0.01] autolearn=disabled Received: from mx1-lw-us.apache.org ([10.40.0.8]) by localhost (spamd1-us-west.apache.org [10.40.0.7]) (amavisd-new, port 10024) with ESMTP id 1QV8UEyqdatt for ; Tue, 19 Jul 2016 06:22:04 +0000 (UTC) Received: from smtp.sanger.ac.uk (smtp.sanger.ac.uk [193.62.202.243]) by mx1-lw-us.apache.org (ASF Mail Server at mx1-lw-us.apache.org) with ESMTPS id 105825F297 for ; Tue, 19 Jul 2016 06:22:03 +0000 (UTC) Received: from sa4500.internal.sanger.ac.uk ([172.22.1.22] helo=mpdomain) by intmail3a.internal.sanger.ac.uk with esmtp (Exim 4.80.1) (envelope-from ) id 1bPOPj-00065J-Tv for users@httpd.apache.org; Tue, 19 Jul 2016 07:21:56 +0100 To: users@httpd.apache.org References: <1468908891.3890.24.camel@mimir.webthing.com> From: Dr James Smith Message-ID: Date: Tue, 19 Jul 2016 07:21:45 +0100 User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:45.0) Gecko/20100101 Thunderbird/45.2.0 MIME-Version: 1.0 In-Reply-To: <1468908891.3890.24.camel@mimir.webthing.com> Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit X-Message-Source: sa4500.internal.sanger.ac.uk Subject: Re: [users@httpd] Run PHP Handler after running my handler Apache archived-at: Tue, 19 Jul 2016 06:22:08 -0000 I use something similar - you should really be applying this in one of the AAA level of handlers (I use mod_perl rather than C handlers) but there are various places you can hook into the process Usually (and slightly naughtily) I add this to the access handler within mod_perl {it does the user/ip identification and then performs the appropriate filters} If you are doing complex access layers (e.g. checking permissions in a db) you may not be able to do this with Location/LocationMatch On 19/07/2016 07:14, Nick Kew wrote: > On Tue, 2016-07-19 at 10:45 +0530, Amlaan Kar wrote: >> I have created a handler in Apache > Sounds like your module's processing should be hooked up > earlier in the cycle. It can then set the handler either > to PHP or to its own page according to the outcome of > whatever parsing it does. > > But given that the server parses the URL, you can probably > dispense with that altogether, and use configuration to > deal with whatever your parser does. If > or is not sufficient, then an clause. > Or even the archaic tool of yesteryear, mod_rewrite. > -- The Wellcome Trust Sanger Institute is operated by Genome Research Limited, a charity registered in England with number 1021457 and a company registered in England with number 2742969, whose registered office is 215 Euston Road, London, NW1 2BE. --------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org For additional commands, e-mail: users-help@httpd.apache.org