Try this patch:

Index: lib/Apache/AxKit/Provider/File.pm
===================================================================
RCS file: /home/cvs/xml-axkit/lib/Apache/AxKit/Provider/File.pm,v
retrieving revision 1.12
diff -u -r1.12 File.pm
--- lib/Apache/AxKit/Provider/File.pm 4 Jan 2003 18:11:08 -0000 1.12
+++ lib/Apache/AxKit/Provider/File.pm 16 Feb 2003 17:12:55 -0000
@@ -160,7 +160,9 @@
}

if ( $self->_is_dir ) {
- if ($AxKit::Cfg->HandleDirs()) {
+ # process directories if AxHandleDirs is On and dir ends in /
+ # (otherwise we decline and let apache redirect)
+ if ($AxKit::Cfg->HandleDirs() && $xmlfile =~ /\/$/) {
my $output = $self->get_dir_xml();
return 0 if (!defined $output);
$self->{dir_xml} = $output;


On Saturday, Feb 15, 2003, at 19:45 Europe/London, Simon Woodside wrote:

I just filed a bug http://rt.cpan.org/NoAuth/Bug.html?id=2114

Subject: AxHandleDirs doesn't convert directory into directory/

(On mac os x 10.2.3) I have AxHandleDirs set up on a directory named "people" with
the following relevant htaccess lines:
AxHandleDirs On
AxAddProcessor text/xsl /people/username.xsl
AxAddProcessor text/xsl /xsl/site.xsl

when I load example.com/people the page displays fine, but normally apache updates
(forwards?) the URL to example.com/people/ and that's not happening. This is a Bad
Thing because then relative links break. A relative link e.g., "simon/index.html"
then loads example.com/simon/index.html" instead of
example.com/people/simon/index.html


I vaguely remember reading about this somewhere but can't find it now on google (maybe because all the docs were just moved though)

simon


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to