On Tue, 2006-06-20 at 11:24 -0700, Ken Woodruff wrote:
> Hey Eric, thanks for the response. What I'm wondering is if there is
> a way (perhaps via an appropriate Apache configuration) to avoid the
> issue of directory requests getting to Mason altogether. What I'm
Apache looks at /foo/1234/, sees it is a directory and attempts loading
the list of DirectoryIndexes in order by performing stat calls. If you
want to muck with this, you have a few choices. The easiest is
mod_rewrite, an (untested) example is given below. Next easiest are
using Perl*Handlers -- specifically, you will want to use either
PerlTransHandler or PerlHeaderParserHandler. These two handlers are at
different levels of the chain, with TransHandler deciding what physical
path to take, and the HeaderParserHandler already knowing the physical
path.
The mod_rewrite hack would probably look something like:
RewriteCond %{REQUEST_FILENAME} -d
RewriteRule /?(.*) %{HTTP_HOST}/$1/index.html [P]
--
Eric Windisch <[EMAIL PROTECTED]>
_______________________________________________
Mason-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/mason-users