The default autoindex script gives the wrong url in the HREF= "foo", to correct that apply this patch:-
--- default.php.orig 2005-05-07 15:26:27.000000000 +0100
+++ default.php 2005-05-07 15:26:34.000000000 +0100
@@ -171,7 +171,7 @@
function printOneEntry( $base, $name, $fileStat...