httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Ben Mihailescu <b...@ece.mcgill.ca>
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 
this:

...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

and

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

and

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

Test file:

#!/opt/local/bin/perl

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:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org


Mime
View raw message