Re: Inconsistency with dhandlers

David Wheeler <[email protected]>
Newsgroups gmane.comp.web.mason.devel
Message-ID <[email protected]>
On May 10, 2004, at 2:28 PM, Jonathan Swartz wrote:

> Ok, that makes sense for the default behavior of decline_dirs=>0. As 
> you
> say, it is backwards incompatible. So I'll schedule it for 1.3.

A parameter would be nice in the interim. How far away is 1.3?

> In the meantime, you should be able to put this in your dhandler or in 
> a
> site-wide autohandler:
>
>     if (-d $r->filename and $r->filename !~ m{/$}) {
>         $m->abort(-1);  # decline
>     }
>
> At least, I think that should work. :) Let me know.

I was figuring I'd have to do that, but unfortunately, it doesn't seem 
to work. Apache redirects the browser to /docs/1.8/, but then returns a 
403:

[Mon May 10 16:53:53 2004] [error] [client 192.168.1.1] Directory index 
forbidden by rule: /usr/local/www/bricolage.cc/docs/1.8/

I'll play around with it some, though.

Regards,

David



-------------------------------------------------------
This SF.Net email is sponsored by Sleepycat Software
Learn developer strategies Cisco, Motorola, Ericsson & Lucent use to 
deliver higher performing products faster, at low TCO.
http://www.sleepycat.com/telcomwpreg.php?From=osdnemail3
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.