Re: [mp2] Declining from response handler bypasses other handlers

2003-10-02 Thread HLiu
My suggestion are: 1.print $requested_dir; to see what you got. 2 changing your code return Apache::DECLINED unless exists $protected_dirs{$requested_dir}; to return Apache::DECLINED if $protected_dirs{$requested_dir}; Hope it helpful. Willy

Re: [mp2] Declining from response handler bypasses other handlers

2003-10-02 Thread Matthew Westcott
On 2 Oct 2003 at 9:15, Geoffrey Young wrote: > if you want to dynamically decide who should serve the page - mod_perl if > some directory is found, mod_php otherwise, then you can use your own > PerlTypeHandler or PerlFixupHandler to set $r->handler for the request based > on your own criteria.

Re: [mp2] Declining from response handler bypasses other handlers

2003-10-02 Thread Geoffrey Young
Matthew Westcott wrote: I'm using a PerlResponseHandler to control access to selected directories of a site, and I've encountered a similar problem to that described in http://marc.theaimsgroup.com/?l=apache-modperl&m=106141216914801&w=2 where returning a 'declined' status is skipping other han