Re: [htdig] htsearch and virtual webservers


Subject: Re: [htdig] htsearch and virtual webservers
From: Peter Peltonen (peter.peltonen@fivetec.com)
Date: Tue Sep 19 2000 - 07:00:57 PDT


Richard van Drimmelen wrote:
>
> running htmerge -c {conf-file} didn't solve the problem (is ran from
> rundig)

And before this you have ran htdig -c (conf-file)?

> The search.html for the first test site on this machine is the default
> search.html with one modification:
>
> <form method="post" action="/cgi-bin/htsearch -c
> /export/home/test.website/htdig/conf/htdig.conf">

As Geoff pointed out, that is not a really good way doing this. In my
search.html reads:

--snip--
<FORM METHOD="post" ACTION="http://test.server.dom/cgi-bin/htsearch">
<INPUT TYPE="hidden" NAME="config" VALUE="testserver">
<INPUT TYPE="hidden" NAME="method" VALUE="all">
<INPUT TYPE="hidden" NAME="format" VALUE="builtin-long">
<INPUT TYPE="hidden" NAME="sort" VALUE="score">
<INPUT TYPE="hidden" NAME="restrict" VALUE="">
<INPUT TYPE="hidden" NAME ="exclude" VALUE="">
<INPUT TYPE="text" SIZE="10" NAME="words" VALUE="">
<INPUT TYPE="submit" VALUE="Search!">
</INPUT>
--snip--

So, all you have to do is to name your config-file (see my search.html's
2nd line) in your form. I've stored my config file in the default htdig
config directory and named the config file testserver.conf.

Peter

------------------------------------
To unsubscribe from the htdig mailing list, send a message to
htdig-unsubscribe@htdig.org
You will receive a message to confirm this.
List archives: <http://www.htdig.org/mail/menu.html>
FAQ: <http://www.htdig.org/FAQ.html>



This archive was generated by hypermail 2b28 : Tue Sep 19 2000 - 07:03:24 PDT