Paul Makepeace wrote:

> I'm using a <Files *.html></Files> Apache conf directive around the
> PerlHandler and have a scheme whereby the handler looks for the named
> page and if it doesn't find it it'll try further up the directory tree
> for an index.html, and so on[1].
> 
> This is fine but breaks with a URL containing a trailing slash -- Apache
> simply reports directory listing is forbidden rather than simulating a
> request for index.html (in which case the PerlHandler would kick in).
> 
> Is there a straightforward solution either with Apache or Template
> besides ensuring all <a> refer to index.html?


I think this belongs more to the modperl mailing list than here, but 

you can use mod_rewrite with a rule similar to:


     RewriteEngine On
     RewriteRule (.*)/$ $1/index.html

to remap all /foo/ requests to /foo/index.html

_____________________________________________________________________
Stas Bekman             JAm_pH      --   Just Another mod_perl Hacker
http://stason.org/      mod_perl Guide   http://perl.apache.org/guide
mailto:[EMAIL PROTECTED]  http://ticketmaster.com http://apacheweek.com
http://singlesheaven.com http://perl.apache.org http://perlmonth.com/



Reply via email to