Re: CGI scripts and Busybox
On Fri, 13 Jun 2008 22:03:58 +0300
ccostin <ccostin.dmu@gmail.com> wrote:
> Hello
>
> What is the minimal configuration for httpd.conf required by busybox
> httpd to run simple CGI scripts ?
> For this are necessary any special environment exported variables ?
>
> When I try to load simple bourne shell scripts, Iceweasel ask me to
> save them on disk.
>
> Command line for busybox is
> busybox httpd -h /var/www/
> and shell scripts are contained in /var/www/cgi-bin/, and have a+x
> execution bits.
>
Sounds like a problem with the content-type. Make sure you set it to
text/html, like the following simple script:
#!/usr/bin/bash
echo -e "Content-type: text/html\n\n";
echo -e "Hello world.\n";
--
Nyizsa.
http://nyizsa.uni.cc
----------------------------------------------------------------------
Get a free email address with REAL anti-spam protection.
http://www.bluebottle.com/tag/1
Reply to: