Hi Doug,

- create two ht://Dig config, e.g. serverA.conf and serverB.conf

- set the database dir in both config files to the same directory

- set the common dir to two separate locations, where the html template
  files will reside.

- create one general config for both webservers, with the same database
  location.

- create a general rundig.sh script

The trick is to create one index for both servers using the general rundig.sh.
Now you have both webservers in the index. If you now use a search_rewrite
rule for each server in its respective config file, you will only get
search results for serverA and serverB.

The mechanism would work like:

- rundig.sh creates the database

- serverA.conf and serverB.conf contain the specific search templates

- if you use a separate htsearch.cgi on each server, put in the search
  form a 
  <input type=hidden name="config" value="serverA">
  or
  <input type=hidden name="config" value="serverB">

- the search_rewrite rule in each config file guarantees, that each htsearch.cgi
  will only find results of the database relating to the correct server

Yours,

Martin


On Tue, Jul 29, 2003 at 02:10:04PM -0500, Doug Schasteen wrote:
> I'm looking over the documentation for htdig and I can't figure out how to
> do multiple templates. Is there a page I'm missing? Maybe a guide somewhere?
> I have two separate websites with their own look and feel and I want them
> both to use the same search database. 
> 

-- 

--------------------------------------------------------
 arago AG, Institut fuer komplexes Datenmanagement
 Am Niddatal 3, 60488 Frankfurt/Main, [EMAIL PROTECTED]
 Tel. 069/405680, Fax 069/40568111, http://www.arago.de
--------------------------------------------------------

Attachment: pgp00000.pgp
Description: PGP signature

Reply via email to