Skip to Content.
Sympa Menu

baslinux - [BL] CGI in BL 3.50?

baslinux AT lists.ibiblio.org

Subject: Baslinux mailing list

List archive

Chronological Thread  
  • From: baslinux AT lists.ibiblio.org
  • To: baslinux AT lists.ibiblio.org
  • Subject: [BL] CGI in BL 3.50?
  • Date: Wed, 31 Oct 2007 17:21:43 +0100

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




Archive powered by MHonArc 2.6.24.

Top of Page