Subject: Re: [htdig3-dev] Portable indexing
From: Rick Richardson (email@example.com)
Date: Fri Nov 05 1999 - 13:59:29 PST
Gilles Detillieux writes...
> According to Geoff Hutchison:
> > On Fri, 5 Nov 1999, Rick Richardson wrote:
> > > Problem is, htdig reports this and doesn't index anything.
> > >
> > > + htdig -v -v -c /home/httpd/html/rfc/.htdig/htdig.conf -i
> > > New server: , 0
> > > Unknown host: 0/robots.txt
> > > pick: , # servers = 1
> > > Is it currently possible to tell htdig to do what I want to do?
> > Well, maybe. I'd suggest setting the host to 'localhost' which will work
> > on almost all machines.
> > The problem is that local_urls doesn't work for everything--it falls back
> > to HTTP for many things, including robots.txt. So it's trying to build a
> > connection to the host you specified, which is the null string. No good.
> > >From this, it worries that it will *ever* be able to make an HTTP
> > connection to the server (it won't) and give up.
> You could always use url_part_aliases to rewrite the urls as you want on
> the target system. E.g.:
> url_part_aliases: http://localhost/rfc *rfcs
> for htdig, then
> url_part_aliases: file:/whatever/path/you/want/rfc *rfcs
> url_part_aliases: http://my.domain.org/docs/network/rfc *rfcs
> for htsearch on the target system.
Thanks for the tip on url_part_aliases.
A slightly modified version of your approach looks like paydirt.
Here are excerpts from my shell script which creates the index,
showing the config values I'm using.
cat <<EOF >> $DCONF
url_part_aliases: http://localhost/$DIR *$DIR
cat <<EOF >> $SCONF
url_part_aliases: http:$DIR *$DIR
One last problem seems to be the construction of the search results
HTML page. The search.html that I populate in $HERE has this
line in it:
<form method="post" action="http:/cgi-bin/htsearch?-c$SCONF">
However, when htsearch creates the results page, the HTML it
generates omits the -c option:
<FORM method="get" action="/cgi-bin/htsearch">
Using only the configuration file, how can I convince htsearch to
add the -c option to the HTML it generates?
-- Rick Richardson firstname.lastname@example.org http://RickRichardson.freeservers.com/
My current CI is 28. I'm 41. I need 14 more cylinders by my next birthday. Two PWC's and an SUV ought to do it. Thats my new goal.
------------------------------------ To unsubscribe from the htdig3-dev mailing list, send a message to email@example.com containing the single word "unsubscribe" in the SUBJECT of the message.
This archive was generated by hypermail 2b25 : Fri Nov 05 1999 - 14:09:31 PST