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 10649 invoked from network); 2 Feb 2021 03:47:53 -0000 Received: from 1ess.inri.net (216.126.196.35) by inbox.vuxu.org with ESMTPUTF8; 2 Feb 2021 03:47:53 -0000 Received: from mail-pg1-f175.google.com ([209.85.215.175]) by 1ess; Mon Feb 1 22:41:58 -0500 2021 Received: by mail-pg1-f175.google.com with SMTP id o7so14021354pgl.1 for <9front@9front.org>; Mon, 01 Feb 2021 19:41:40 -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=ba4QFC61FjDONfRpyPlmDKLGAy2/pHCd7gH1Q8BgcwY=; b=cSlgGGMGLQAbQ3PUEf0kGXUl82NhAbtBRC/CJPdVG/SI2g+YJqdW0AAZzHj5KpxFsW bW94IIBIkA5sUDaqRQQDu1WBoeQSXCUuMHlH+qe64UYJWoukZY9d7jyAyErU2m0VJ6tK ZSuDPabw62ek3hIcj5QPcu6eekSVL7ou8TKyEG6OBf4gms8ulMyxERNyDDCGGRgVwmDK NbpadYDGfcy7bQvcJB7ENX0tjk00vDa5mDSeP76CoQZaSHNyVNlnbp2SsNxQQx/IsEZB R4Oumrg6kRR9dDV1t95fBAn2hZ+UT7e//zVSR7If3+72Ly+NLefF1IQRovEUlV+ep15V AlEw== 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=ba4QFC61FjDONfRpyPlmDKLGAy2/pHCd7gH1Q8BgcwY=; b=PevKRgL/Sb5C1Or+4EyvKE37ENqVG6zz7zmEH5QuQA15/2KlvoKCZP2BNIUsdmTr6C EVW61FMXXWqe+NKaWL98UNVkWmG86NEkC7UhVx3FurQ50b+kAQghkYc1EZCHIQXu64yI iM1uter0nlxhncJ682Ggp4fpxUTREWzf5+/wxN/rEB8LEhgUqhzpGTGeycr0RmvUfO9o Nq4sTvIq3/Tgmm+DugIB9dvJdHEP1SL6bSI0QnPWOr+dG8Zn+utKob94sJVHHTgw4/4J dN3zilaZzYuwbP1cZNLzUE4Z3i8gejo62ACP98lT3aAOPt2bNwySY5rV0WqOWfgYSOWq FMJQ== X-Gm-Message-State: AOAM533IBACq7kdz/jAlHyWOzpvmQUe9N/xBFs3KEdP0aRQlA7WHPgGF lhK5nf7RvkOAz5NCsgVlHkbZGRc5Hbw= X-Google-Smtp-Source: ABdhPJxjSWrXrS4BtFSzqcsihChjZdY8ikc3cZNX4ukfnOowN+4eUR5hOfDExsh1qOJKxckSyvjFBg== X-Received: by 2002:a62:9248:0:b029:1ae:8b24:34c8 with SMTP id o69-20020a6292480000b02901ae8b2434c8mr18721376pfd.67.1612237298774; Mon, 01 Feb 2021 19:41:38 -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 b203sm20431514pfb.11.2021.02.01.19.41.37 for <9front@9front.org> (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Mon, 01 Feb 2021 19:41:38 -0800 (PST) From: thinktankworkspaces@gmail.com X-Google-Original-From: glenda@gmail.com Message-ID: <8FDFBE93B8DDBDBAB7E2F3D00EA5F296@gmail.com> To: 9front@9front.org Date: Mon, 1 Feb 2021 19:41:36 -0800 In-Reply-To: <7A820243-652E-42D3-87BD-A81B9E51CE03@stanleylieber.com> MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="upas-miihnynnijuswscusuupmonlbw" List-ID: <9front.9front.org> List-Help: X-Glyph: ➈ X-Bullshit: managed compliant extension-based WEB2.0 over SQL property full-stack core frontend Subject: Re: [9front] rc-httpd Reply-To: 9front@9front.org Precedence: bulk This is a multi-part message in MIME format. --upas-miihnynnijuswscusuupmonlbw Content-Disposition: inline Content-Type: text/plain; charset="US-ASCII" Content-Transfer-Encoding: 7bit Okay I got it working. Strange that I had to touch the www file and change its permissions. But I guess thats a thing touch /rc/bin/rc-httpd/select-handler #!/bin/rc PATH_INFO=$location switch($SERVER_NAME) { case 172.27.0.67 FS_ROOT=/usr/glenda/www/yoda exec static-or-index case* error 503 } touch /usr/glenda/www/yoda/index.html touch /sys/doc/www chgrp sys /sys/doc/www chmod +aw www mv /rc/bin/service/!tcp80 /rc/bin/service/tcp80 --upas-miihnynnijuswscusuupmonlbw 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-miihnynnijuswscusuupmonlbw--