Re: htdig: Script Headers?

Andrew Scherpbier (
Mon, 17 Aug 1998 08:13:26 -0700

Graham Wilton wrote:
> In a moment of madness, I offered to set up a free(ish) Intranet at work,
> using Linux (RedHat 5.0) Apache (1.2) and HTDig.
> It all seems to be working, but when I use the default search form
> (search.html) that comes with HTDig (which should run /cgi_bin/htsearch),
> Apache returns error 500. The Apache error log says the reason for the
> problem is "premature end of script header". This is discussed in the
> Apache FAQ (FAQ 14), but I don't understand either the reason for the
> problem or the proposed solution.
> I'm a complete novice at this, so if anyone can help, assume I know nothing
> - you won't be far wrong.
> P.S. - apologies if this isn't an HTDig problem, but Apache implies it is.

Try running htsearch manually.
It will prompt you for things that would normally come from the HTML form:

shield: [14]--$ ./htsearch
Enter value for words: computer
Content-type: text/html

Enter value for format: builtin-short
Search results for 'computer'

..... This will show you if there is something wrong with htsearch or not. -- Andrew Scherpbier Contigo Software ---------------------------------------------------------------------- To unsubscribe from the htdig mailing list, send a message to containing the single word "unsubscribe" in the body of the message.

This archive was generated by hypermail 2.0b3 on Sat Jan 02 1999 - 16:27:17 PST