According to [EMAIL PROTECTED]:
> I have managed to get htDig working from command line prompt, using
> 'htsearch -c <config_file>'
> 
> It seems that when I was using the command 'htsearch' on its own, it was
> running a different version of htDig with a different (older) database.
> So before, whenever I was re-indexing different directories and then
> using 'htsearch'... old results kept coming up!
> 
> At the moment, I don't know where the other isntallation of
> htsearch/conf/db files may be.

Well, as I suggested yesterday, there are a couple possibilities.
Either you have two different htsearch binaries, or they're running two
different config files.  From the CONFIG and htdigs.conf files that you
sent, it would seem that htsearch is in /home/httpd/html/cgi-bin/htsearch,
its default CONFIG_DIR is /home/httpd/html/htdig/conf, and the default
config file is /home/httpd/html/htdig/conf/htdigs.conf.

So, here are some questions for you...

1) When you run htsearch from the command line, where are you (i.e. what
does the pwd command report)?  What does "which htsearch" report?

2) Are there any other htsearch binaries on your system?  What does
"locate htsearch" and/or "find / -name htsearch -ls" report?

3) What value of <config_file> are you using in your htsearch command above?
Is it different than the default /home/httpd/html/htdig/conf/htdigs.conf?

4) What is the value of the "action" attribute in the <form ...> tag in
your search.html file?  If it's the usual setting of "/cgi-bin/htsearch",
what is the ScriptAlias definition for /cgi-bin in your Apache httpd.conf
or srm.conf file?  Does this definition match with the location where
htsearch is installed?  It obviously matches something, as htsearch is
running from the server, but is it the same binary or a different one?

What I'm getting at with all these questions is you need to trace the
chain of logic, step by step, to determine what's going on, from what
URL the search form is giving the server, to how the server translates
that URL to a local path, to what binary the server runs as the htsearch
CGI program, to what config file that binary uses, to what database
that config file defines.  Obviously, at some point in that chain,
it's going to a different place than when you run htsearch from the
command line.  You need to figure out where and why.  I can help, but
I need the information above to do it.

Also, I don't think you ever mentioned which platform you're running
this on.  The reason I ask is that the /home/httpd/html path for
the web files looks like Red Hat Linux 6.2 or earlier (more recent
Linux distributions tend to use /var/www/html or something like that).
However, Red Hat 6 put /cgi-bin in /home/httpd, not /home/httpd/html,
so if that's what you're running it may be that the server is grabbing
the htsearch binary from a different "cgi-bin" directory than the one
in which you installed it.  If this is a Red Hat, Mandrake or SuSe
Linux distribution, try "rpm -q htdig" and see if it reports anything.
You may already have had an ht://Dig package installed before the one
you compiled from the tar archive.

> when indexing the directory http://10.5.1.199/test/
> 
> which has ONLY the files tea.html and coffee.html,
> 
> http://10.5.1.199/test/coffee.html
> http://10.5.1.199/test/tea.html
> 
> why does it index the following URL's:
> 
> http://10.5.1.199/test/?N=D
> http://10.5.1.199/test/?M=A
> http://10.5.1.199/test/?D=A
> http://10.5.1.199/test/?N=A
> http://10.5.1.199/test/?D=D
> http://10.5.1.199/test/?M=D
> http://10.5.1.199/test/?S=D

Because Apache's FancyIndexing option generates links to those alternate
directory views when you ask it for the /test/ directory listing.  See
http://www.htdig.org/FAQ.html#q4.23 (last paragraph of 4.23).

-- 
Gilles R. Detillieux              E-mail: <[EMAIL PROTECTED]>
Spinal Cord Research Centre       WWW:    http://www.scrc.umanitoba.ca/
Dept. Physiology, U. of Manitoba  Winnipeg, MB  R3E 3J7  (Canada)


-------------------------------------------------------
This sf.net email is sponsored by:ThinkGeek
Welcome to geek heaven.
http://thinkgeek.com/sf
_______________________________________________
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