Re: Inconsistency with dhandlers

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

>> What I'd like to suggest is that we add an option to Mason to prevent
>> dhandlers from responding to a request if the request comes in for
>> files, rather than directories. If it declines the request, I think
>> that Apache would notice that 1.8 was a directory, and redirect the
>> browser to /docs/1.8/.
>
> Did you mean to say "if the request comes in for directories, rather 
> than
> files"?

No, I mean that if a request comes in for /docs/1.8/, then 
/docs/1.8/dhandler can respond. If it comes in for /docs/1.8 (not the 
omitted final slash), then /docs/1.8/dhandler will not respond.

> Are you overriding the decline_dirs parameter? By default, it is set 
> to 1,
> meaning that Mason will decline a request if $r->filename is a 
> directory.
> See ApacheHandler.pm line 828. If this isn't working for you for some
> reason, let us know.

Doesn't that prevent dhandlers from working? I want /docs/1.8/ to work, 
but /docs/1.8 to redirect to /docs/1.8/.

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.