ENOSIG Discussie (threads)


[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

probleempje met fnord webserver en CGI (was: Re: fnord returns empty page when asked for CGI)


Hoi,

Vandaag stuurde ik onderstaand bericht naar de fnord mailinglist.  Het
gaat over de fnord webserver ( http://www.fefe.de/fnord/ ), ipsvd (
http://smarden.org/ipsvd/ ), internet protocol service daemons, en over
runit ( http://smarden.org/runit/ ), een Unix init vervanger.

Mijn posting is inmiddels op
http://thread.gmane.org/gmane.comp.web.fnord/114 verschenen.  Als je zin
hebt me te helpen het probleem te debuggen, en me via deze lijst een tip
kunt geven, dan graag.

Degene met de gouden tip zal (bij geen bezwaar) eeuwige roem vergaren
met een eervolle vermelding op http://doc.mdcc.cx/ :)

Groeten,

Joost


Op Sun 30 Dec 2007 om 12:54:15 +0100 schreef Joost van Baal:
> 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
>  
>  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
> 

<<inline: signature.asc>>






Follow-ups:


[ Date Index] [ Thread Index]