incomplete headers (0 bytes) received from server error

Samantha Gilster <[email protected]>
Newsgroups gmane.comp.web.fastcgi.devel
Message-ID <[email protected]>
Hi all,

I am trying to get FastCGi up on FreeBSD 5.4 (AMD64) with Apache/2.0.52, and 
Perl 5.8.4. I get 500 internal server error with the following message in the 
log:

[Mon Aug 22 16:20:06 2005] [warn] FastCGI: (dynamic) server  
"/local/htdocs/pdb/fcgi-bin/fast.fcgi" started (pid 59980)
[Mon Aug 22 16:20:07 2005] [error] [client 127.0.0.1] FastCGI: incomplete 
headers (0 bytes) received fromserver "/local/htdocs/pdb/fcgi-bin/fast.fcgi"

This is from the generic script in the devkit.

I have searched through several lists and although the error has come up, 
there's no good data on what may be causing it. Any help would be very much 
appreciated. 

Thanks in advance. 
-Samantha


Here's the script and relevent Apache bits:

#!/usr/bin/perl

use warnings;
use strict;

use FCGI;
use CGI;

my $q = new CGI;

my $count = 0;

my %env;
my $req = FCGI::Request(\*STDIN, \*STDOUT, \*STDERR, \%env);

while($req->Accept() >= 0) {
    print("Content-type: text/html\r\n\r\n",
          "<title>FastCGI echo (Perl)</title>\n",
          "<h1>FastCGI echo (Perl)</h1>\n",
          "Request number ", ++$count, "<p>\n");



LoadModule fastcgi_module libexec/apache2/mod_fastcgi.so


<IfModule mod_fastcgi.c>
    AddHandler fastcgi-script fcg fcgi fpl
</IfModule>


<VirtualHost pdb.localhost:80>
    ServerName trouble.localhost
    DocumentRoot /local/htdocs/pdb/htdocs
    DirectoryIndex index.htm index.html index.shtml
    Options Includes FollowSymlinks
    SetEnv PEER_PERLLIB "/local/htdocs/pdb/lib/perl5/site_perl/5.8.4/"
    ScriptAlias /fcgi-bin "/local/htdocs/pdb/fcgi-bin/"

    <Directory "/local/htdocs/pdb/fcgi-bin/">
        SetHandler  fastcgi-script
        AllowOverride None
        Options +ExecCGI -Includes
        Order allow,deny
        Allow from all
    </Directory>

</VirtualHost>

___________________________________
fastcgi-developers mailing list
http://fastcgi.com/fastcgi-developers/
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.