From: Miko B. <mik...@ya...> - 2003-09-04 18:07:18
|
Hello, 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 headers: /home/www/web4/htdig-cgi-bin/htsearch" 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 http://www.htdig.org/FAQ.html#q5.23 So I guess I have a problem with my httpd.conf. These are the regular entries in my httpd.conf: <IfModule mod_alias.c> ScriptAlias /cgi-bin/ /usr/local/httpd/cgi-bin/ <IfModule mod_perl.c> ScriptAlias /perl/ "/usr/local/httpd/cgi-bin/" ScriptAlias /cgi-perl/ "/usr/local/httpd/cgi-bin/" </IfModule> <Directory "/usr/local/httpd/cgi-bin"> AllowOverride None Options None Order allow,deny Allow from all </Directory> </IfModule> <Location /cgi-bin> AllowOverride None Options None SetHandler cgi-script </Location> These are my entries to solve the problem: <Directory /home/www/web4/htdig-cgi-bin/> SetHandler cgi-script AllowOverride None Options +ExecCGI Order allow,deny Allow from all </Directory> <VirtualHost www.xy.com> .... ScriptAlias /htdig-cgi/ /home/www/web4/htdig-cgi-bin/ .... </VirtualHost> 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"> .... </form> Facts: - htsearch is working from commandline - ScriptAlias is working - the htsearch in /home/www/web4/htdig-cgi-bin is opened with the form But: 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, Miko |