apache 2.0 cgi error

for my domain.com

i goto www.domain.com/cgi-bin/hello.cgi

and i get:
[Thu May 09 17:31:47 2002] [error] [client 24.141.132.129] Premature end of script headers: hello.cgi

that's what error_log says for hello.cgi

all test.cgi is is this:

#!/usr/bin/perl

print "Content-Type: text/html\n\n";
print "<B>who you are</b>\n";
print "<pre>";
system('id');
print "</pre>";

this is apache 2.0

see:
# /usr/local/apache2/bin/httpd -l
Compiled in modules:
core.c
mod_access.c
mod_auth.c
mod_include.c
mod_log_config.c
mod_env.c
mod_setenvif.c
mod_ssl.c
prefork.c
http_core.c
mod_mime.c
mod_status.c
mod_autoindex.c
mod_asis.c
mod_info.c
mod_suexec.c
mod_cgi.c
mod_vhost_alias.c
mod_negotiation.c
mod_dir.c
mod_imap.c
mod_actions.c
mod_userdir.c
mod_alias.c
mod_so.c


in httpd.conf i have

# To use CGI scripts outside of ScriptAliased directories:
# (You will also need to add "ExecCGI" to the "Options" directive.)
#
AddHandler cgi-script .cgi .pl

and for this
ScriptAlias /cgi-bin/ /mspace/sites/domain.com/htdocs/cgi-bin/

in httpd.conf
ScriptAlias /cgi-bin/ "/usr/local/apache2/cgi-bin/"

and in httpd.conf

#
# "/usr/local/apache2/cgi-bin" should be changed to whatever your ScriptAliased
# CGI directory exists, if you have that configured.
#
<Directory "/usr/local/apache2/cgi-bin">
AllowOverride None
Options None
Order allow,deny
Allow from all
</Directory>

anyone konw what is wrong?

 

 

 

 

Top