Stas Bekman wrote:
Stas Bekman wrote:

http://httpd.apache.org/docs-2.0/mod/mod_dir.html says:

A "trailing slash" redirect is issued when the server receives a
request for a URL http://servername/foo/dirname where dirname is a
directory. Directories require a trailing slash, so mod_dir issues a
redirect to http://servername/foo/dirname/

However if you have a non-trailing / config to be handled by
non-default handler, e.g.:

<Location /foo/dirname>
    SetHandler perl-script
    PerlHandler Apache::HelloWorld
</Location>

it should honour this configuration and not ignore it, issuing a
redirect, despite the existence of DocumentRoot/foo/dirname. This is
how it worked in Apache-1.3 and appears to be broken in Apache-2.0.


There is one more problem with this issue. The path_info record is always ''.

Justin suggested to:


1) stop mod_dir from doing a redirect if it isn't the handler and

2) fix SetHandler by having core_override_type match the 1.3 semantics by not mucking with dirs

and then the second issue I've mentioned above will be automatically resolved.

__________________________________________________________________
Stas Bekman            JAm_pH ------> Just Another mod_perl Hacker
http://stason.org/     mod_perl Guide ---> http://perl.apache.org
mailto:[EMAIL PROTECTED] http://use.perl.org http://apacheweek.com
http://modperlbook.org http://apache.org   http://ticketmaster.com



Reply via email to