9front - general discussion about 9front
 help / color / mirror / Atom feed
From: "Ralf Wissing" <ralf.wissing@posteo.de>
To: 9front@9front.org
Subject: [9front] rc-httpd "write error" when using cgi
Date: Fri, 24 Feb 2023 10:14:34 +0000	[thread overview]
Message-ID: <FA9989F392174D3FBA3E95DA783FCEFF@posteo.de> (raw)

Hi everyone,

i am currently experimenting with rc-httpd, and while it works flawless serving static sites i cannot get even a simple cgi script working. 

Here something i tried:

I have a simple rc script which echos a "hello world" html page (which i cannot include in this mail without getting rejected for using html mail). 

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

%<------------------------


Running it with aux/listen1 i get only the following after visiting the page with a browser:

%<------------------------
echo: write error: Hangup
%<------------------------

I am sure that i miss something obvious... and i would now after a few hours tinkering appreciate any kick in the right direction.

             reply	other threads:[~2023-02-24 10:18 UTC|newest]

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

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=FA9989F392174D3FBA3E95DA783FCEFF@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).