9front - general discussion about 9front
 help / color / mirror / Atom feed
From: "Ralf Wissing" <ralf.wissing@posteo.de>
To: 9front@9front.org
Subject: Re: [9front] rc-httpd "write error" when using cgi
Date: Sat, 25 Feb 2023 11:11:23 +0000	[thread overview]
Message-ID: <BEC0E54D750A952FF7D3A8FCA944F717@posteo.de> (raw)
In-Reply-To: <C211B215A76D572D0A24F55E0F24B5FD@musolino.id.au>

A glass of whiskey, a nights sleep was enough to let me see where i seemingly made an error:

Added "echo 'HTTP/1.1 200'" to the cgi script, now everything is working.


Quoth Alex Musolino <alex@musolino.id.au>:
> > Then there is the following configuration:
> > 
> > File /rc/bin/rc-httpd/select-handler
> > %<------------------------
> > #!/bin/rc
> > 
> > PATH_INFO=$location
> > FS_ROOT=/usr/web
> > 
> > exec static-or-cgi /usr/web/cgitest.rc
> 
> This part works fine for me.
> 
> > Running it with aux/listen1 i get only the following after visiting
> > the page with a browser:
> 
> What is "it" that you are running with aux/listen1?  You should be
> running /rc/bin/rc-httpd/rc-httpd not /rc/bin/rc-httpd/select-handler.
> 
> --
> Cheers,
> Alex Musolino
> 


      reply	other threads:[~2023-02-25 11:14 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2023-02-24 10:14 Ralf Wissing
2023-02-24 12:01 ` Alex Musolino
2023-02-25 11:11   ` Ralf Wissing [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=BEC0E54D750A952FF7D3A8FCA944F717@posteo.de \
    --to=ralf.wissing@posteo.de \
    --cc=9front@9front.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).