Hi
        Even with the '/' at the end of the URL htdig didn't seem to be able to
index the local file system if it had to do directory listings.
        What I have done is created a small cgi script that generates a list of
files in a given directory as a page of links.   htdig seems more than
willing to follow these links in the local file system.
        To get around htdig excluding .cgi files (which I want excluded) I
created a 'handler' in my httpd.conf

AddHandler  cgi-script .fgi

and changed the links in the robot.html file to point to listposts.fgi
in the messages directories.  

Htdig uses http to get the directory contents from the script but then
uses the local file system to index the files. 

I know it is kind of involved, but I needed to get local file system
indexing working.

Here's the script:

#!/usr/local/bin/perl
use CGI qw/:standard/;
print header();
$| = 1;
opendir(THISDIR, ".") or die "$!";
while ($_ = readdir THISDIR) {
        if(-T $_) {
                if($_ !~ /listposts.fgi/) {
                        print qq(<A HREF="$_">$_</a><BR>\n);
                }
        }
}

-- 
Clint Gilders
Servermaster OnlineHobbyist, Inc.
[EMAIL PROTECTED]

_______________________________________________
htdig-general mailing list <[EMAIL PROTECTED]>
To unsubscribe, send a message to <[EMAIL PROTECTED]> with a 
subject of unsubscribe
FAQ: http://htdig.sourceforge.net/FAQ.html

Reply via email to