9front - general discussion about 9front
 help / color / mirror / Atom feed
* [9front] rc-httpd
@ 2021-02-01 21:49 thinktankworkspaces
  2021-02-01 22:24 ` ori
                   ` (2 more replies)
  0 siblings, 3 replies; 9+ messages in thread
From: thinktankworkspaces @ 2021-02-01 21:49 UTC (permalink / raw)
  To: 9front

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.


^ permalink raw reply	[flat|nested] 9+ messages in thread

end of thread, other threads:[~2021-02-02  4:10 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-02-01 21:49 [9front] rc-httpd 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 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).