9front - general discussion about 9front
 help / color / mirror / Atom feed
From: "james palmer" <james@biobuf.link>
To: "9front mailing list" <9front@9front.org>
Subject: Re: [9front] rc-httpd
Date: Mon, 01 Feb 2021 23:05:29 +0000	[thread overview]
Message-ID: <591467c4-5c4c-487b-9082-0165326527b7@www.fastmail.com> (raw)
In-Reply-To: <48A334002DE651E9CA76515CC9E0733D@gmail.com>

Quoth thinktankworkspaces@gmail.com:
> 
> #!/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
> }

this will always 503, you are setting SERVER_NAME to yoda
you also don't want to set PATH_INFO, it is the path portion of the url

> I know I'm missing something simple
> also where Do I run the rc-httpd command. At the end of /rc/bin/cpurc?

rc-httpd gets run by /rc/bin/service/tcp80, which gets run by aux/listen when an incoming connection to port 80 occurs.
you do not want it in your cpurc.

      parent reply	other threads:[~2021-02-02  0: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
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 [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=591467c4-5c4c-487b-9082-0165326527b7@www.fastmail.com \
    --to=james@biobuf.link \
    --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).