httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Ben Mihailescu <>
Subject CGI execution trouble
Date Mon, 01 Apr 2002 18:35:45 GMT
Hi all,

I setup my server to run CGI scripts from a cgi-bin dir bellow 
~userhome/www. When I am trying to see if it's working my error log logs 

...malformed header from script. Bad header=Hello, world!: ...

If I run the same script from the prompt I get this:

root@machname-[cgi-bin] 86> perl test.cgi
Hello, world!root@machname-[cgi-bin] 87>

My httpd.conf has the following setup:

Options Indexes FollowSymLinks ExecCGI MultiViews Includes


ScriptAliasMatch ^/~([^/]*)/cgi-bin/(.*) /home/$1/cgi-bin/$2


<Directory "/home/$1/cgi-bin/$2">
        AllowOverride All
        Options None
        Order allow,deny
        Allow from all

Test file:


print "Hello, world!";

Is there something I am missing from my setup or my test.cgi file?

TIA, Ben

The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:> for more info.
To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message