From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on inbox.vuxu.org X-Spam-Level: X-Spam-Status: No, score=-0.1 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,FREEMAIL_FROM autolearn=ham autolearn_force=no version=3.4.4 Received: (qmail 4708 invoked from network); 2 Feb 2021 02:55:16 -0000 Received: from 1ess.inri.net (216.126.196.35) by inbox.vuxu.org with ESMTPUTF8; 2 Feb 2021 02:55:16 -0000 Received: from mail-pf1-f173.google.com ([209.85.210.173]) by 1ess; Mon Feb 1 21:28:57 -0500 2021 Received: by mail-pf1-f173.google.com with SMTP id b145so6537543pfb.4 for <9front@9front.org>; Mon, 01 Feb 2021 18:28:46 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:message-id:to:subject:date:in-reply-to:mime-version; bh=U2z9AlSSlzM99czaW8zm9fE5bVwqXWWXBDXE6o1sOfI=; b=HeKDD1ETy6beydD2RGVyMwVOy0NloBmh7MQQoPtCrmEZMuQAkkPF6CneCFD9x0HA+r 3go7ul6wtvuOIEZFqrP0v5mK3Q0b6bXzLuW2s6RfGmubVHsjrN4shJ8zvSTUn19DFfls KMXACWyUNAlxbS2iWoRAp2hfdEkDibrEGtWUI3zzLB2+RHh6oBA7OUPqef9JeHrmaIxu cqRjz7dVATp8gxmaHcP5RrEqo8P9Wn7Z3kP4jaM8gj2o/o8Gh/W2RrvDGWGuZzn1KQ06 erWpHJLqXwk61lIgeCzv814rEcqnRpo+TEn7bYGjw77kBZaOibb+Y6KIe0wA7LZ7TiyO EsVw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:message-id:to:subject:date:in-reply-to :mime-version; bh=U2z9AlSSlzM99czaW8zm9fE5bVwqXWWXBDXE6o1sOfI=; b=U7n1JcZ2ThJqxZx3mZXWnuf4QD4nwvkEyNQZz/fkkrZ53h+bTgTlo3GQOhJS9Eu7l6 XEnUMJOuSPEYN/e+Yf5fpCuRSu1UsttRnASTyFI5IIrjsZSxuP4+PIQEp1v/YE5ZTKrv ApTYySRXsFpvb+3MXGP4j8VqjkUMmqoEj6hZAFyf3W74U4WTo+0VA9rqCsfif0tV7CSg EOUe7vkFf+ebhp+TFfinooqJFt/Aj3R07+v+ZecJkz5YlxbjH+EAaYcyXPO+P1T/faBb WkKBYA+mZrojqf76oW9dclmGUfUPJQ9MzsBgfQ3EajmTaA43xnjf8uMTi2t4yqx+VhRJ /Ixw== X-Gm-Message-State: AOAM531FwEK+AoE+jDjvxapfFqe++6paZK6LW9q1nfVxeGMdv3rCy+eo 5+p/azkNI27fNsXv12FASMOV7Z5LvBk= X-Google-Smtp-Source: ABdhPJxi8XRrMYZVnhviGqhJ++CoegeCt9zuleDtt8DcdmB+sX19u6kyzLDP4wFmfF1uHs0tnRjNCQ== X-Received: by 2002:a17:902:d64e:b029:df:e5b1:b7f7 with SMTP id y14-20020a170902d64eb02900dfe5b1b7f7mr19578516plh.10.1612232439698; Mon, 01 Feb 2021 18:20:39 -0800 (PST) Return-Path: Received: from cirno.thinktank (107-200-43-169.lightspeed.sntcca.sbcglobal.net. [107.200.43.169]) by smtp.gmail.com with ESMTPSA id d195sm12279626pfd.216.2021.02.01.18.20.38 for <9front@9front.org> (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Mon, 01 Feb 2021 18:20:39 -0800 (PST) From: thinktankworkspaces@gmail.com X-Google-Original-From: glenda@gmail.com Message-ID: <8D12C3D76843F866F6C3BC59B48973E5@gmail.com> To: 9front@9front.org Date: Mon, 1 Feb 2021 18:20:37 -0800 In-Reply-To: <7A820243-652E-42D3-87BD-A81B9E51CE03@stanleylieber.com> MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="upas-propjkoeemibmjbkcynvjwqzpl" List-ID: <9front.9front.org> List-Help: X-Glyph: ➈ X-Bullshit: private optimized app method Subject: Re: [9front] rc-httpd Reply-To: 9front@9front.org Precedence: bulk This is a multi-part message in MIME format. --upas-propjkoeemibmjbkcynvjwqzpl Content-Disposition: inline Content-Type: text/plain; charset="US-ASCII" Content-Transfer-Encoding: 7bit Okay I simplified select-handler below #!/bin/rc switch($SERVER_NAME) { case 172.27.0.67 FS_ROOT=/usr/glenda/www/yoda exec static-or-index case* error 503 } I still get the error: /sys/log/www: rc (tcp80): can't open: '/sys/log/www' access permission denied. and nothing in /sys/log/www which is understandable if it cant write to it for whatever reason cpu% ls -l w* ls: w*: 'w*' directory entry not found cpu% ls -l /rc/bin/service/tc* --rwxrwxr-x M 64 sys sys 243 Oct 4 2019 /rc/bin/service/tcp17019 --rwxrwxr-x M 64 sys sys 59 Oct 4 2019 /rc/bin/service/tcp17020 --rwxrwxr-x M 64 sys sys 59 Oct 4 2019 /rc/bin/service/tcp80 --upas-propjkoeemibmjbkcynvjwqzpl Content-Type: message/rfc822 Content-Disposition: inline Delivered-To: thinktankworkspaces@gmail.com Received: by 2002:a17:906:1711:b029:324:6be6:8270 with SMTP id c17csp2833841eje; Mon, 1 Feb 2021 18:03:15 -0800 (PST) X-Google-Smtp-Source: ABdhPJzfm6mefMJtrAf60sebBCRE6+aYDMkMAZLZEiPt+95+sNCaWAotsHEAgmc63TQ9ovqp/Foi X-Received: by 2002:a37:654:: with SMTP id 81mr19473060qkg.340.1612231395429; Mon, 01 Feb 2021 18:03:15 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1612231395; cv=none; d=google.com; s=arc-20160816; b=RgJYuoHGiDKeA40Vz7gP2o4QLZsKfS6l718s85W9bX+GzWRZvbk0sTRZkGgylJh1Bm W6kapcxHzD+hAp7e+Epr+78drQcEF+pAK3oevkzCOmCZpjgKQK9EyqN0NF6EmGIAide6 u150xsV71cS68uEoz6HsMTZGYUCdMMD+ynwheiRfhYzGTomBkz6C/Td7w8vGAumcrA6C bHhPtsTvIiCeC0cq+jiwlqxeJwiEe2mWafvDz9lUd2wQrbJTU1DCP/FZG24JkhMxK/YT tzib/8T3ZUXlT+E8XtW9+9GmsCHAYdg/DPj9zZukI+bjTzN4oxJWHz/ZdDpq1+33xqZp LD1w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=precedence:reply-to:subject:list-help:list-id :content-transfer-encoding:mime-version:message-id:references :in-reply-to:to:from:date; bh=z3OJwh+jKXWWtazyzcyoJJVbufyzdPoDiE25jOKyYCk=; b=L0yNT5CDl/XN1Qax3csmkcD/9T8MeBI88D2/+77LRUnzY8FB88hXTdDFwnloSjf0Dg hrjbNywLLHbH9HHN6eWi6C1POeLqTNS4ymOlYyag1cAOV0adOJRtgyt7r1s9BjCHdHIE UBUep018+j3+dx1RRSDpm/bf3u+RA9WoDSex7oGMh1TO88bvYddzVZsCDqjYczwogl3R vS6WOMa8Fz/+MTAXUmv5uxiyyBHzcgUjcxXw9FdYb84b7H7x9YyLNmPbb0PZ3pTvG2Dy XM6BSRAuiiZhoRUXUlAeLx2rwN2n1iFaIFfsHnD9RiTFRtM6CxplKLbXaj7mY2lZ5D8c Niow== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of 9front-bounces@1ess.inri.net designates 216.126.196.35 as permitted sender) smtp.mailfrom=9front-bounces@1ess.inri.net Return-Path: <9front-bounces@1ess.inri.net> Received: from 1ess.inri.net (1ess.inri.net. [216.126.196.35]) by mx.google.com with ESMTP id u33si9475914qtd.257.2021.02.01.18.03.12; Mon, 01 Feb 2021 18:03:15 -0800 (PST) Received-SPF: pass (google.com: domain of 9front-bounces@1ess.inri.net designates 216.126.196.35 as permitted sender) client-ip=216.126.196.35; Authentication-Results: mx.google.com; spf=pass (google.com: domain of 9front-bounces@1ess.inri.net designates 216.126.196.35 as permitted sender) smtp.mailfrom=9front-bounces@1ess.inri.net Received: from 5ess.inri.net ([107.191.111.177]) by 1ess; Mon Feb 1 17:46:03 -0500 2021 Received: from [127.0.0.1] ([107.207.65.229]) by 5ess; Mon Feb 1 17:45:57 -0500 2021 Date: Mon, 01 Feb 2021 17:45:54 -0500 From: Stanley Lieber To: 9front@9front.org In-Reply-To: <48A334002DE651E9CA76515CC9E0733D@gmail.com> References: <48A334002DE651E9CA76515CC9E0733D@gmail.com> Message-ID: <7A820243-652E-42D3-87BD-A81B9E51CE03@stanleylieber.com> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable List-ID: <9front.9front.org> List-Help: X-Glyph: ➈ X-Bullshit: content-driven-aware engine CSS optimizer Subject: Re: [9front] rc-httpd Reply-To: 9front@9front.org Precedence: bulk On February 1, 2021 4:49:44 PM EST, thinktankworkspaces@gmail=2Ecom wrote: >Just having bit of an issue getting this up for the first time=2E=20 > >I thought it was as simple as creating a file in: > >/rc/bin/rc-httpd/handlers/select-handler > >#!/bin/rc > >PATH_INFO=3D$home/www/ >SERVER_NAME=3Dyoda > >switch($SERVER_NAME) { >case 172=2E27=2E0=2E67 > FS_ROOT=3D$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 de= nied=2E=20 > >It didn't really matter if I ran the command as glenda in drawterm or on = the console=2E The >error was the same if I curl 172=2E27=2E0=2E67 > >I know I'm missing something simple >also where Do I run the rc-httpd command=2E At the end of /rc/bin/cpurc? > >I don't really have DNS setup so I was just testing with the IP address f= irst=2E > > ls -l /sys/log/www sl --upas-propjkoeemibmjbkcynvjwqzpl--