Greetings,
I've installed htdig onto my FreeBSD system (using FreeBSD's ports collection),
and set it up to search on one of the 20 or so websites this machine serves.
Everything seems to be working fine.
Now I need to add the searching capabilities to other websites on this machine.
Note that each website must have its own separate database. I've read through
the documentation and I have not been able to determine how this is done.
Here's what I've got now, mostly defaults from the install:
config file is here:
/usr/local/etc/htdig.conf
binary files are here:
/usr/local/bin/ (htdig, htfuzzy, htmerge, etc)
rundig file is here:
/usr/local/bin/rundig (I modified it to generate my database)
htsearch is here:
/www/sites/cgi-bin/htsearch
misc files are here:
/usr/local/share/htdig/ (header.html, english.0, etc)
search.html is here:
/www/sites/website_1/search/search.html
images are here:
/www/sites/website_1/htdig/
database is here:
/u2/www/htdig/ (nice big partition)
The config file specifies the database directory correctly for website_1.
In order to allow separate searching on each website, it seems like I should so
something like:
1. Make a config file for each website, storing them someplace central for all
config files
2. Make a rundig for each website, storing them in the same place as the config
files
3. Put a search.html and a copy of the images (for buttons, starts, etc) in each
website directory (possibly use symbolic links if generic is okay, replace if
customization is desired)
4. Make subdirectories in /u2/www/htdig for each website database
Here's what I don't understand: When a user goes to the search page, and does a
search, the form passes the request on to cgi-bin/htsearch as it should. How
does htsearch know which config file to look at, so that it will know which data
base to use? Is it compiled into it somewhere? If so, I need to generate a new
htsearch for each website, right? Does that mean I need to reinstall the htdig
software 20 times? What is the proper procedure?
Any ideas are welcome! Please email me directly, as well as post to the list.
Thanks!
--- Eric
===========================================================
Eric Wadsworth email: [EMAIL PROTECTED]
Conceptual Systems and Software http://www.consys.com
===========================================================
_______________________________________________
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