9front - general discussion about 9front
 help / color / mirror / Atom feed
From: thinktankworkspaces@gmail.com
To: 9front@9front.org
Subject: Re: [9front] rc-httpd
Date: Mon, 1 Feb 2021 18:16:52 -0800	[thread overview]
Message-ID: <11E6EA762065E0A1897E109E1ED436A7@gmail.com> (raw)
In-Reply-To: <7A820243-652E-42D3-87BD-A81B9E51CE03@stanleylieber.com>




[-- Attachment #2: Type: message/rfc822, Size: 4210 bytes --]

From: Stanley Lieber <sl@stanleylieber.com>
To: 9front@9front.org
Subject: Re: [9front] rc-httpd
Date: Mon, 01 Feb 2021 17:45:54 -0500
Message-ID: <7A820243-652E-42D3-87BD-A81B9E51CE03@stanleylieber.com>

On February 1, 2021 4:49:44 PM EST, thinktankworkspaces@gmail.com wrote:
>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.
>
>

ls -l /sys/log/www

sl

  reply	other threads:[~2021-02-02  3:20 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
2021-02-01 22:45 ` Stanley Lieber
2021-02-02  2:16   ` thinktankworkspaces [this message]
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=11E6EA762065E0A1897E109E1ED436A7@gmail.com \
    --to=thinktankworkspaces@gmail.com \
    --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).