Re: [htdig] several virtual hosts (apache) - one htdig

Subject: Re: [htdig] several virtual hosts (apache) - one htdig
From: Anthony Peacock (
Date: Wed Aug 23 2000 - 08:29:12 PDT


> > You can pass a parameter to htsearch that specifies the config file to use.
> > Using this you can have a config file, database, and wrapper.html files for
> > each virtiual server.
> How ? htdig is running by now, the only missing link is the parameter. I
> can pass it on the shell ('./htsearch -v -c ../htdig/htdig.conf') and
> htsearch prompts me for a keyword and outputs an html-formatted results
> list. But I have no idea how to pass it via the web-browser, I tried
> 'action="/cgi-bin/htsearch -c ../htdig/htdig.conf"' in search.html,
> doesn't work, pretty foolish I guess. I checked out your site, you don't
> pass the parameter that way...

In the HTML Form that you use for launching htsearch you can place a
hidden input tag with the name 'config' like the code snippet below:

------------------- HTML ---------------------
<FORM METHOD="post" ACTION="/cgi-bin/htsearch">
<TD WIDTH="96"> <FONT SIZE="-1">Search for:</FONT></TD>
<TD COLSPAN="4"> <INPUT TYPE="text" SIZE="40" NAME="words"
VALUE="">&nbsp;&nbsp; <INPUT TYPE="submit" VALUE="Search"></TD>
<INPUT TYPE="hidden" NAME="method" VALUE="and">
<INPUT TYPE="hidden" NAME="format" VALUE="builtin-long">
<INPUT TYPE="hidden" NAME="restrict" VALUE="">
<INPUT TYPE="hidden" NAME="exclude" VALUE="">
<INPUT TYPE="hidden" NAME="config" VALUE="manpages">

---------------- /HTML -----------------------

See: for more information about the
parameters htsearch can accept.

Anthony Peacock       
CHIME, Royal Free & University College Medical School
"Some days it is just not worth gnawing through the restraints."

------------------------------------ To unsubscribe from the htdig mailing list, send a message to You will receive a message to confirm this. List archives: <> FAQ: <>

This archive was generated by hypermail 2b28 : Wed Aug 23 2000 - 08:31:52 PDT