fnord returns empty page when asked for CGI
Joost van Baal <[email protected]> Sun, 30 Dec 2007 12:54:15 +0100
| Newsgroups | gmane.comp.web.fnord |
|---|---|
| Message-ID | <[email protected]> |
--m46qSNjkc66Ye11q Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Hi, fnord fails to run any CGI-scripts on my host. Requesting for a CGI gives just an empty page; not even an HTTP return code. Has somebody got a clue on what I'm doing wrong here? Is this some fnord-related error, or should I go elsewhere for advise? Any help would be greatly appreciated. Of course, I'm willing to give more details about my setup if needed. Setup is: fnord 1.10-2 Debian package, running with Gerrit Pape's ipsvd 0.12.1-1 and runit 1.7.2-1 on Debian GNU/Linux "etch" on Sun SPARCS Ultra 10. root@stegun:~# cat /var/service/fnord/run #!/bin/sh cd /var/www exec chpst -m2000000 -Uwww-data -e/etc/fnord/env \ tcpsvd -l0 0 80 fnord-cgi 2>&1 /var/service/fnord is a symlink to /etc/fnord root@stegun:~# grep . /var/service/fnord/env/* /var/service/fnord/env/COLF_COMBINED:1 /var/service/fnord/env/COLF_VHOST:1 /var/service/fnord/env/DIR_LIST:1 /var/service/fnord/env/PROTOURL:http:// root@stegun:~# cat /var/www/doc.mdcc.cx/cgi-bin/foo.cgi #!/bin/sh echo Content-type: text/plain echo echo foobar /var/www/doc.mdcc.cx:80 is a symlink to /var/www/doc.mdcc.cx I've done some tests. This fails: joostvb@stegun:~% cat <<EOT | nc localhost 80 GET /cgi-bin/foo.cgi HTTP/1.0 Host: doc.mdcc.cx =20 EOT joostvb@stegun:~% (the line 2007-12-30_11:45:33.65623 doc.mdcc.cx:80 127.0.0.1 - - [30/Dec/2007:11:45:33 +0100] "GET /cgi-bin/foo.cgi HTTP/1.0" 404 0 "-" "?" appears in fnord's log). However, the fnord-cgi program itself seems to act OK: www-data@stegun:~% cat <<EOT | /usr/sbin/fnord-cgi GET /cgi-bin/foo.cgi HTTP/1.0 Host: doc.mdcc.cx EOT HTTP/1.0 200 OK Server: fnord/1.10-2 Pragma: no-cache Connection: close Content-type: text/plain foobar doc.mdcc.cx:80 0.0.0.0 - - [30/Dec/2007:11:14:26 -0100] "GET /cgi-bin/foo.cgi HTTP/1.0" 200 33 "-" "?" www-data@stegun:~% thttpd acts sane with the script, too. Non-CGI pages are served OK: joostvb@stegun:~% w3m -dump http://doc.mdcc.cx/ works just fine. Thanks for your time, Bye, Joost --m46qSNjkc66Ye11q Content-Type: application/pgp-signature; name="signature.asc" Content-Description: Digital signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.6 (GNU/Linux) iQIVAwUBR3eG5qllOfYkUl6eAQKUChAAjoTGAxAgocA+jjnoJ3wfNQ2krhefsBqI ktjr/72NCI+nZxlh1wjgiUey0AekVPBIH7AveqCQdMClhTmRKQmemEgv551cBmgN L8QRZs0Cc58naMx5rQy4k/+DYSKFUCRUIJpry7msFRY1XtDlj+Ja0xDuefnlkblG HA4M7cn3MuEtPSWHBVf04Z4uhXUwAkIccUmUet+YlffHdaJLA1DevuhICYH65D7g hOsGKHijEhGZxHl1L8RlV2iR181Q5yLbQCFhpKdT2JY5lBrECqQJCFmzN8+9gq7x uK96HF4gQGZKNBlvbHp67sjZHhZxMkBvxxtxA2lQ7e1H2fe/KbNdt24CV/Q3wqVY aswUXiS7VaV/nXM+/Nwo+koS6xGcW6Y6vaHDFd4heEybW178MoqQxMCXCy7/1XqA EIEbjDtkzTAPrEErNXXg3fyccWDQ45vsogJN/Bs8KyP9SiNJeJMS6KUbimiArbEw vw02XUw0T1qZYosO0mnQEMmOzSuraKjEpUixCrf8fj9fB05RE2buL0xb4c/cWd2Z 8HZC5Gp98c7zo05qxZd2fpv4nhQJ0n2AqkGkQiMBPRjE9QSiYbGY+BMtbHjwahQe kgCIR23pGxxJmdaBuR0XWk/9Wfmj/TnZhR5O2wzwFE/An3PeO6oJYoigy3M9Z5mx tJ8zVDZuuCw= =DwMz -----END PGP SIGNATURE----- --m46qSNjkc66Ye11q--