CGI problems
Jon Martin <[email protected]> Sat, 09 Apr 2005 15:18:57 +0200
| Newsgroups | gmane.comp.web.fnord |
|---|---|
| Message-ID | <[email protected]> |
Hello there, First let me say that I'm excited about this software. I'm building a firewall/router/access point out of an old Toshiba Satellite T2130. The laptop has 486 proc and only 24Meg of memory, so resources are a big issue. I like the small footprint of fnord because it helps me save some memory, which is already low. The trouble is that I'm having problems with CGIs on fnord 1.9. I'm running a Debian unstable with the vanilla 2.4.27 kernel. Linux debian 2.4.27-2-386 #1 Thu Jan 20 10:55:08 JST 2005 i486 GNU/Linux I've compiled fnord after defining the CGI var in httpd.c /* uncomment the following line to enable support for CGI */ #define CGI but each time I call a CGI I get the "Gateway Broken or Unavailable." error, which I understand from looking at the source is a http 502 error. Here is my run script in /etc/fnord #!/bin/sh cd /webroot exec tcpserver -l 0 192.168.60.1 80 fnord-cgi I'm using the -cgi binary even though I have not see that on any of the how-tos for fnord. I'm assuming this is right because while using the fnord the CGIs don't seem to be treated at all (script text in the browser). This is the contents of my env directory: # ls -l total 2 -rw-r--r-- 1 root root 2 2005-03-31 18:55 COLF_COMBINED -rw-r--r-- 1 root root 8 2005-03-31 18:55 PROTOURL debian:/etc/fnord/env# cat * 1 http:// And here is my little hello world script (Which runs on my Apache server): #!/usr/bin/perl print "Content-type: text/html\n\n"; print "<html>Hello...</html>\n"; btw. Is there anyway to search the fnord mailing list archives? thanks, Jon Martin Corcelles, Switzerland