htsearch under the commandline is working fine. But with Apache 1.3.19
some problems appear:
Internal Server Error with the error.log-entry: "Premature end of script
htdig faq 5.13: "This happens when htsearch dies before putting out a
"Content-Type" header." and
"One increasingly common problem is Apache configurations which expect
all CGI scripts to be Perl, rather than binary executables or other
scripts, so they use "perl-handler" rather than "cgi-handler". "
Ok, I check the FAQ: http://www.htdig.org/FAQ.html#q5.13 and
So I guess I have a problem with my httpd.conf.
These are the regular entries in my httpd.conf:
ScriptAlias /cgi-bin/ /usr/local/httpd/cgi-bin/
ScriptAlias /perl/ "/usr/local/httpd/cgi-bin/"
ScriptAlias /cgi-perl/ "/usr/local/httpd/cgi-bin/"
Allow from all
These are my entries to solve the problem:
Allow from all
ScriptAlias /htdig-cgi/ /home/www/web4/htdig-cgi-bin/
At the server the htsearch (without extension) is placed in directory
/home/www/web4/htdig-cgi-bin and have the propertiey 755.
The html-file which called the htsearch has the form;
<form method="post" name="htdigsearch" action="/htdig-cgi/htsearch">
- htsearch is working from commandline
- ScriptAlias is working - the htsearch in /home/www/web4/htdig-cgi-bin
is opened with the form
Why I get the internal server error when running the html-form? I have
SetHandler cgi-script. What is missing?
I don't know, do I have an error in my httpd.conf or do I have another
problem? perhaps I should run the makefile and the ./configure with
other parameters, but I think it is running fine under commandline, so I
don't have to change this setup.
Thank you for any hint,