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.

Cees

Reply via email to