From: ori@eigenstate.org
To: 9front@9front.org
Subject: Re: [9front] rc-httpd
Date: Mon, 01 Feb 2021 14:24:39 -0800 [thread overview]
Message-ID: <B9C89357240328E6522F7A5E7EF56437@eigenstate.org> (raw)
In-Reply-To: <48A334002DE651E9CA76515CC9E0733D@gmail.com>
Quoth thinktankworkspaces@gmail.com:
> Just having bit of an issue getting this up for the first time.
>
> I thought it was as simple as creating a file in:
>
> /rc/bin/rc-httpd/handlers/select-handler
>
> #!/bin/rc
>
> PATH_INFO=$home/www/
> SERVER_NAME=yoda
>
> switch($SERVER_NAME) {
> case 172.27.0.67
> FS_ROOT=$home/www/yoda
> exec static-or-index
> case*
> error 503
> }
>
> Then running the following commmand: /rc/bin/rc-httpd/rc-httpd >>[2]/sys/log/www
>
> No errors in /sys/log/www
> But I discovered on the server the following error:
> /sys/log/www: rc (tcp80): can't open: '/sys/log/www' access permission denied.
>
> It didn't really matter if I ran the command as glenda in drawterm or on the console. The
> error was the same if I curl 172.27.0.67
>
> I know I'm missing something simple
> also where Do I run the rc-httpd command. At the end of /rc/bin/cpurc?
>
> I don't really have DNS setup so I was just testing with the IP address first.
>
rc-httpd handles a single request at a time. it's launched once per
request by listen(8), which runs it via /rc/bin/service/tcp80.
next prev parent reply other threads:[~2021-02-01 23:10 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2021-02-01 21:49 thinktankworkspaces
2021-02-01 22:24 ` ori [this message]
2021-02-01 22:45 ` Stanley Lieber
2021-02-02 2:16 ` thinktankworkspaces
2021-02-02 2:20 ` thinktankworkspaces
2021-02-02 3:37 ` sl
2021-02-02 3:41 ` thinktankworkspaces
2021-02-02 3:59 ` sl
2021-02-01 23:05 ` james palmer
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=B9C89357240328E6522F7A5E7EF56437@eigenstate.org \
--to=ori@eigenstate.org \
--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).