Return-Path: Delivered-To: apmail-modperl-archive@apache.org Received: (qmail 1251 invoked by uid 500); 20 Feb 2002 02:39:21 -0000 Mailing-List: contact modperl-help@apache.org; run by ezmlm Precedence: bulk list-help: list-unsubscribe: list-post: Delivered-To: mailing list modperl@apache.org Received: (qmail 1236 invoked from network); 20 Feb 2002 02:39:20 -0000 Subject: Re: file globbing question From: Cees Hek To: John Stauffacher Cc: modperl@apache.org In-Reply-To: <00be01c1b9b6$1fd51810$5a89d3ce@chapman.edu> References: <00be01c1b9b6$1fd51810$5a89d3ce@chapman.edu> Content-Type: text/plain Content-Transfer-Encoding: 7bit X-Mailer: Evolution/1.0.2 Date: 20 Feb 2002 13:40:38 +1100 Message-Id: <1014172838.24559.3.camel@cees> Mime-Version: 1.0 X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N On Wed, 2002-02-20 at 13:27, John Stauffacher wrote: > All, > > I am a bit confused as to what httpd.conf directives need to be used in > order to get apache to execute a PerlHandler when it encounters a > certain file type. What I want to do: > Execute a handler whenever a *.qw file is accessed. The same > handler whether or not the file exists and not look for the file. So the > user makes the request: get /somewhere/my.qw and gets the response > "moo". Then they request /other/place/boo.qw and gets the response > "moo". I have tried using a directive, but it envokes the > handler, then looks for the file and throws a 404. Any ideas? The directive is the right way to go. Are you sure you are returning OK in your Handler? If you return something else (like DECLINED) then Apache will take over the request and handle it in the default manner (ie look up the file). Returning OK lets Apache know that the request was dealt with appropriately and it can move on to the next phase. Cees