Re: CGI scripts and Busybox
- From: Nyizsnyik Ferenc <nyizsa@xxxxxxxxxxxxxx>
- Date: Fri, 13 Jun 2008 21:28:02 +0200
On Fri, 13 Jun 2008 22:03:58 +0300
ccostin <ccostin.dmu@xxxxxxxxx> 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
--
To UNSUBSCRIBE, email to debian-user-REQUEST@xxxxxxxxxxxxxxxx
with a subject of "unsubscribe". Trouble? Contact listmaster@xxxxxxxxxxxxxxxx
- Follow-Ups:
- Re: CGI scripts and Busybox
- From: Tzafrir Cohen
- Re: CGI scripts and Busybox
- References:
- CGI scripts and Busybox
- From: ccostin
- CGI scripts and Busybox
- Prev by Date: CGI scripts and Busybox
- Next by Date: Re: Shutdown/logout not working
- Previous by thread: CGI scripts and Busybox
- Next by thread: Re: CGI scripts and Busybox
- Index(es):
Relevant Pages
|