I recently set up an ftp-like webserver for my intranet and would now like to have Apache default to it rather than mod_autoindex.c. The server is a single perl script called Drall.

I have downloaded and tried to make sense of Apache::AutoIndex 0.08, which is a perl script that replaces mod_autoindex, but to no avail. The httpd.conf mod_dir command
'DirectoryIndex index.html /cgi-bin/drall.pl?left=$1'
is exactly what I need, but $1 is taken literally, unlike in
RedirectMatch ^/(.*) '/cgi-bin/drall.pl?left=$1'
(which redirects everything, not what I want).

Since httpd.conf can't offer me a solution, I turn back to the perl code of Drall. Looking at Apache::AutoIndex, I can't begin to decipher how it hooks in and the documentation for gettting the thing running is horrid. I know only that this has to do (probably?) with PerlTransHandler and PerlHandler. PerlTransHandler links to URI Translation, which is almost completely undocumented over at the mod_perl pages (what little they have is here).

In reply to setting up a perl module to replace Apache's autoindex by Anonymous Monk

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post, it's "PerlMonks-approved HTML":



  • Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
  • Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
  • Read Where should I post X? if you're not absolutely sure you're posting in the right place.
  • Please read these before you post! —
  • Posts may use any of the Perl Monks Approved HTML tags:
    a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
  • You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
            For:     Use:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.