From nobody Fri Jul 8 05:03:18 2022 X-Original-To: freebsd-stable@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 37BF63E6BAE for ; Fri, 8 Jul 2022 05:03:32 +0000 (UTC) (envelope-from softwareinfojam@gmail.com) Received: from mail-oa1-x2a.google.com (mail-oa1-x2a.google.com [IPv6:2001:4860:4864:20::2a]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (2048 bits) client-digest SHA256) (Client CN "smtp.gmail.com", Issuer "GTS CA 1D4" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4LfLlR2MClz3SC1 for ; Fri, 8 Jul 2022 05:03:31 +0000 (UTC) (envelope-from softwareinfojam@gmail.com) Received: by mail-oa1-x2a.google.com with SMTP id 586e51a60fabf-10c0e6dd55eso14147144fac.7 for ; Thu, 07 Jul 2022 22:03:31 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc:content-transfer-encoding; bh=93Kw77USFLnUodWJ777z2zxU8PrHDT1lJUIJcabeU8w=; b=VUPPNYhxvKccRSAVRN4OknEO1YhUe2yAzgNT2lcTLm5POS649f4fmDEle/+TrRKm6i /Zk6yzn1xATOBJlRsyRvhVb8ZeJqs17GUDDpQKmz66N9cmtxJvAQd2OVaqgCyVvGvpSi lJs8BgV3FIHTcP66htBJVmd6MJoMJnwWA8VBssBZQ8x0RIuFyhmMHKRhGYlo/Sry1h1E D+L2CxqR44ZeuCHQRpx94y4Las+h2pc7Sc0MjqcN3bANLj3dlZN4WaaL2IPILFIuo2Z1 KTVXuEkD5yS35I5yHzCt0f3UV/LMVgvrfj0Gbx/qf5UREA8WA36O4XSE+qgGIjAAy5V2 CUug== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc:content-transfer-encoding; bh=93Kw77USFLnUodWJ777z2zxU8PrHDT1lJUIJcabeU8w=; b=wcUM31s3IEfGJhuoUjt+XMBHrAL5dR3OFLgoMHY6l/ttclyheUdUXv6qBCpqxZQ/+b 80GM2zvpSTs4Yeqs8ZsI/OaoWNT9yxLEPa2zW8qaoF9xB3p94zSLFXDMMGTeXyjGlttr UxLQlrAendGWPYEGNwt+1PvvPD0zVS53k7LWOqBnCVTv8MXrEzPKdf8nH3+6zX3jt9uz hcFAouomVoAVhBQXW4TWe5OdjYPPVj2H7jbZoV6T+0ktcPm4TNWeDKUvDOkcxETmW51V /x4VT9UNz74x7S/2q7LOqiiZFZC01OYux4xg4RhhyRDEx19ZVMJVNrwjy1JsQbzTzoPC VXhw== X-Gm-Message-State: AJIora+Wuge0LJoZ5ESxg6TLZwfZWCQkHVUtRdR4lO5HNZVJ7oKmgoeg WzScLXtHWQb/ZhXMc3jS2oMpcwzoE0G4F6q6o2H04n2fFoQ= X-Google-Smtp-Source: AGRyM1v8JqGPwL/SwO4Q16aMawGZpEvYHao0Gv7ISwEpC75ap8WViCg/WbqFpku+C/PrF46XnH990m8RhMUxMVhwtqY= X-Received: by 2002:a05:6870:428b:b0:10c:3847:db45 with SMTP id y11-20020a056870428b00b0010c3847db45mr4844970oah.218.1657256610246; Thu, 07 Jul 2022 22:03:30 -0700 (PDT) List-Id: Production branch of FreeBSD source code List-Archive: https://lists.freebsd.org/archives/freebsd-stable List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-stable@freebsd.org X-BeenThere: freebsd-stable@freebsd.org MIME-Version: 1.0 References: In-Reply-To: From: Software Info Date: Fri, 8 Jul 2022 00:03:18 -0500 Message-ID: Subject: Re: Mailman and obhttpd To: Michael Loftis Cc: Nick Kostirya via freebsd-stable Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Rspamd-Queue-Id: 4LfLlR2MClz3SC1 X-Spamd-Bar: - Authentication-Results: mx1.freebsd.org; dkim=pass header.d=gmail.com header.s=20210112 header.b=VUPPNYhx; dmarc=pass (policy=none) header.from=gmail.com; spf=pass (mx1.freebsd.org: domain of softwareinfojam@gmail.com designates 2001:4860:4864:20::2a as permitted sender) smtp.mailfrom=softwareinfojam@gmail.com X-Spamd-Result: default: False [-1.95 / 15.00]; NEURAL_HAM_SHORT(-0.95)[-0.955]; DMARC_POLICY_ALLOW(-0.50)[gmail.com,none]; R_DKIM_ALLOW(-0.20)[gmail.com:s=20210112]; R_SPF_ALLOW(-0.20)[+ip6:2001:4860:4000::/36]; MIME_GOOD(-0.10)[text/plain]; MLMMJ_DEST(0.00)[freebsd-stable]; MID_RHS_MATCH_FROMTLD(0.00)[]; FROM_EQ_ENVFROM(0.00)[]; RCVD_TLS_LAST(0.00)[]; FREEMAIL_ENVFROM(0.00)[gmail.com]; MIME_TRACE(0.00)[0:+]; ASN(0.00)[asn:15169, ipnet:2001:4860:4864::/48, country:US]; RCVD_IN_DNSWL_NONE(0.00)[2001:4860:4864:20::2a:from]; RCPT_COUNT_TWO(0.00)[2]; DKIM_TRACE(0.00)[gmail.com:+]; FROM_HAS_DN(0.00)[]; ARC_NA(0.00)[]; RCVD_COUNT_TWO(0.00)[2]; FREEMAIL_FROM(0.00)[gmail.com]; TO_MATCH_ENVRCPT_SOME(0.00)[]; PREVIOUSLY_DELIVERED(0.00)[freebsd-stable@freebsd.org]; TO_DN_ALL(0.00)[]; DWL_DNSWL_NONE(0.00)[gmail.com:dkim] X-ThisMailContainsUnwantedMimeParts: N Thanks very much for your reply. I had tried that exact line but when I ran obhttpd -n I kept getting a syntax error on line 12. That's the line that has root { "/usr/local/mailman/cgi-bin/", strip 1 } When I changed the line to root "/usr/local/mailman/cgi-bin/" the sytax error went away. Could it be that the FreeBSD version of HTTPD doesn't support all the options that the OpenBSD version does? On Thu, Jul 7, 2022 at 10:00 PM Michael Loftis wrote: > > Not an expert on the openbsd https but from what I recall Your root shoul= d look more like root { =E2=80=9C/usr/local/mailman/cgi-bin=E2=80=9C, strip= 1 } =E2=80=94 your current configuration is telling it to exec the directo= ry, which obviously won=E2=80=99t work. =E2=80=A6 the latter tells it to ta= ke the URI and strip one component off to complete the filesystem part to t= he CGI=E2=80=A6 > > On Thu, Jul 7, 2022 at 14:12 Software Info wr= ote: >> >> Hi All, >> >> I am trying to get OpenBSD=E2=80=99s httpd working with Mailman but I am >> having some issues. I am using obhttpd-7.0.20211221 on FreeBSD 13.1 >> and I used the suggestions found at >> https://www.quernus.co.uk/2015/09/28/running-mailman-on-openbsd/ When >> I try to access the site http://mailman.mydomain.com/Mailman/admin I >> get a 500 internal server error. I tried running both httpd and >> slowcgi without daemonizing them and I keep seeing this error on the >> screen: slowcgi: execve /usr/local/mailman/cgi-bin: Permission denied. >> Not sure why I am getting that since both httpd and slowcgi run as www >> and the cgi-bin directory is owned by www and has 755 permissions on >> it. At a loss. Any help would be appreciated. >> >> >> Here are my config files below. >> >> [obhttpd.conf] >> chroot "/" >> logdir "/var/log" >> server "mailman.mydomain.com" { >> listen on * port 80 >> root "/usr/local/mailman/" >> log access "obhttpd-access.log" >> log error "obhttpd-error.log" >> location "/Mailman/*" { >> fastcgi socket "/var/www/run/slowcgi.sock" >> root "/usr/local/mailman/cgi-bin" >> } >> >> location "/icons/*" { >> root "/usr/local/mailman/icons/" >> } >> >> location "/pipermail/*" { >> root "/usr/local/mailman/archives/public/" >> } >> } >> >> [rc.conf] >> obhttpd_enable=3D"YES" >> slowcgi_enable=3D"YES" >> slowcgi_flags=3D"-p /" >> > -- > > "Genius might be described as a supreme capacity for getting its possesso= rs > into trouble of all kinds." > -- Samuel Butler