Hi! On Tue, Sep 09, 2003 at 10:05:43AM +0100, Steve Hay wrote:
> ><Location /myproject/css> > > SetHandler default > ></Location> > ><Location /myproject/img> > > SetHandler default > ></Location> > > > >This is working as expected, i.e. request for /css/foo.css or /img/bar.png > >are not handled by Apache::Dispatch > > > > > What about requests for /css or /img ? Are they handled by > Apache::Dispatch? The problem I found with my LocationMatch override is > that requests for files were caught, but requests for directories > slipped through to the Perl handler. Unfourtunatly, request for /css are handled by Apache::Dispatch. At least it seems so, but I'm enterly sure if it's the actual request that's beeing served, or an internal redirect (or some other funky Apache internal thing, like ErrorDocument or index generation) It does seem like a feature/problem of Apache. I tried various config options (and modifications to Apache::Dispatch), but no matter what I did, request for /img/ allways get passed to PerHandler instead of default handler Request for anything inside /img/ work as expected. No, wait a minute... If I request /foo/bar/ (another dir) than it doesn't work either. I still do not know if this a bug in Apache / mod_perl / Apache::Dispatch / YourHandler, and/or internal redirect. Or if this is expected behaviour. -- #!/usr/bin/perl http://domm.zsi.at for(ref bless{},just'another'perl'hacker){s-:+-$"-g&&print$_.$/}