perl-modperl mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Cees Hek <>
Subject Re: file globbing question
Date Wed, 20 Feb 2002 02:40:38 GMT
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 <Files> directive, but it envokes the
> handler, then looks for the file and throws a 404. Any ideas?

The <Files> 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.


View raw message