Hi Folks,
I'm completely stumped. I'm trying to get the get htsearch to take
an alternate config file so that I can maintain separate databases
for separate VirtualHosts. I've successfully built a database.
I can run htsearch -c /path/to/dir/htdig.conf at the command line,
and it works.
However, nothing I do when submitting the search.html form works.
I've tried wrapping htsearch in a shell script which sets
CONFIG_DIR, like so:
#!/bin/sh
CONFIG_DIR=/path/to/dir; export CONFIG_DIR
/usr/local/bin/htsearch
(This didn't work at the command line, either.)
I tried the shell script with the -c flag:
#!/bin/sh
/usr/local/bin/htsearch -c /path/to/htdig.conf
(This worked at the command line.)
I've tried compiling a C wrapper which sets the arguments:
#include <stdio.h>
int main(void) {
char *switches[] = { "htsearch", "-c", "/path/to/htdig.conf", NULL };
execv("/usr/local/bin/htsearch", switches);
}
Nothing works via the form. I keep getting the
"Unable to read configuration file"
error.
I've checked the httpd logs, and the requests are logging.
What am I missing?
Thanks for any help,
Omar
_______________________________________________
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