My idea was this:

After you ./configure, and before you make, edit the CONFIG file so that:

DEFAULT_CONFIG_FILE= ${CONFIG_DIR}/htdig/htdig.conf

then it should look in the ${CONFIG_DIR}/htdig directory for the needed default htdig.conf file, and you can create other conf files as needed, so that they are all in the same place.

(I believe with 3.1.6 it just drops the htdig.conf file into /etc, but this could cause problems, so we create a htdig dir in /etc)

So, you would have site1.conf, site2.conf, site3.conf in that htdig dir.

Then you should be able to configure each of those files to point to the right place for their own html files and db files...

This should allow you to have a single set of binaries, and multiple sets of config files, templates, and db files.

you would then have to call the appropriate conf file for each site when indexing or searching.

This is mostly theoretical, as I plan on setting up a server like this, but haven't yet.

Does anyone see any problem with doing it this way? Or is there a better way?


Pete


shams khan wrote:
Hi,
I have a couple of questions relating to creating multiple indexes / databases.
1) When creating a second index, I obviously change the "prefix" path (so that all the files get installed to a different directory), but I keep the IMAGE_DIR the same (as I am not too bothered about images being overwitten)..... but what about the BIN_DIR. Can i overwrite the binaries from the first htdig install with binaries from the second ? My concern is that other variables set in the CONFIG file gets hard coded into the binaries... i fthis is the case then I will need to set the BIN_DIR to different folders for seperate HtDig installations... ??
2) I would like to create 3 seperate databases for 3 different folders on our webserver. I don't want to use 1 database with exclude and restrict variables, because I've read in the FAQ that they can be overridden!
So... can someone advise me whether there is any security risk with the following indexes / settings:
The three htdig installations will be installed to seperate folders within /var/www/html/sme/
The search forms for each installation will also reside in seperate directories, and each search form will call a seperate htsearch binary
The htsearch binaries will be placed within the /var/www/html/cgi-bin/ folder
HTML /var/www/html/sme/site1/site1search.html
CONF /var/www/html/sme/site1/htdig/htdig.conf
BINARY /var/www/html/cgi-bin/htsearch1
HTML /var/www/html/sme/site2/site2search.html
CONF /var/www/html/sme/site2/htdig/htdig.conf
BINARY /var/www/html/cgi-bin/htsearch2
HTML /var/www/html/sme/site3/site3search.html
CONF /var/www/html/sme/site3/htdig/htdig.conf
BINARY /var/www/html/cgi-bin/htsearch3
Thanks for any help!
Shams


-------------------------------------------------------
This sf.net email is sponsored by: To learn the basics of securing your web site with SSL, click here to get a FREE TRIAL of a Thawte Server Certificate: http://www.gothawte.com/rd524.html
_______________________________________________
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