[BL] CGI in BL 3.50?

baslinux at lists.ibiblio.org baslinux at lists.ibiblio.org
Wed Oct 31 12:21:43 EDT 2007


I have experimented with httpd but I can't get CGI-programs to work. Is 
CGI supported in BL 3.50 that has BusyBox v1.01? I have put the program 
in /www/cgi-bin/ and tried extension sh and cgi. It is readable and 
executable by all. As it is now the webserver sends the file instead of 
the output. I use this httpd.conf-file:
A:*
*.cgi:/bin/sh

Here is the program called env.cgi (it works well on an other server):
#!/bin/sh

echo Content-type: text/html
echo ""

cat << EOM
<HTML>

<HEAD><TITLE>Show env</TITLE>
</HEAD>
<BODY bgcolor="#cccccc" text="#000000">
<P>
<SMALL>
<PRE>
EOM

env

cat << EOM
</PRE>
</SMALL>
<P>
</BODY>
</HTML>
EOM

-- 
// Mikael Bonnier
----
// Web: http://www.df.lth.se/~mikaelb/
// E-mail/MSN: mikaelb at df.lth.se
// ICQ # 114635318
// Mob/SMS/MMS: +46730307498
// Phone: +4646323208
// Skype: mikael4u
// PeerCall: 700-100-2180



More information about the BasLinux mailing list