httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Ben Mihailescu <b...@ece.mcgill.ca>
Subject Re: CGI execution trouble - FIXED
Date Mon, 01 Apr 2002 18:53:05 GMT
Thanks!!! It's always in your face...

Thanks again, it's working fine now,

Ben

Artiom Morozov wrote:

> You forget HTTP headers. Add following to the beginning of your script
>
> print "Content-type: text/plain\n\n";
>
> îÁ 2002.04.01 21:35 Ben Mihailescu ÎÁÐÉÓÁÌ:
>
>> 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
>>
>
> ----
> Web Space Station
> Software Development and Web Design
> http://www.web-space-station.com/
>
> Web Master Aid
> Premier Tools for Webmasters and Site Owners
> http://www.webmasteraid.com/
>
> Web Host Station
> Web site hosting and maintenance
> http://www.webhoststation.com/
>
> Fast E-book Compiler
> The Fastest E-book Publishing Software
> http://www.fastebook.com/
>
> ---------------------------------------------------------------------
> 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




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