From nobody Fri Jul 8 03:00:30 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 C9B3217D39A3 for ; Fri, 8 Jul 2022 03:00:51 +0000 (UTC) (envelope-from mloftis@wgops.com) Received: from mail-oa1-x34.google.com (mail-oa1-x34.google.com [IPv6:2001:4860:4864:20::34]) (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 4LfJ1s04qYz3CQR for ; Fri, 8 Jul 2022 03:00:48 +0000 (UTC) (envelope-from mloftis@wgops.com) Received: by mail-oa1-x34.google.com with SMTP id 586e51a60fabf-f2a4c51c45so27721069fac.9 for ; Thu, 07 Jul 2022 20:00:48 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=wgops.com; s=gm01; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=mjOQog1S85NV5vhVjdrEGaZ2uoIhUcavqg/SuunFpAE=; b=Qz4fcm8mRDIDw6rjAA1OB7K9PaMaSyd+uOs1cGRabDiZMaKkxmuhAlbRGHJu6A4sp6 V08ytJ8sBf9GDnRSwKqarM0e8j4bhJSl2wPI9rskQ68wfmHijvCy3hgCt0c+WL6pbWmw hOCFwre0VuEJD0WdAhOueQEYwEAec3M3aGi7s= 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; bh=mjOQog1S85NV5vhVjdrEGaZ2uoIhUcavqg/SuunFpAE=; b=BN9zx3e/bBxaUhJGyH77aWq6EpLITAcH9aXs6VBZPWfbPXqbzUqNOvmiZ957IZtVbv jixIbqeTUz1hVl8rGUSpL3puU/HtzARF04Y+AIVJsD6IV/3LpcCNbuKZPX5UG8reqskP 7uimnk5WWZcYPJZQ+O8Plhu/bw47X8QcVF8AqfV7t2Wadveq2lSZthGBq2boRj7dnTGZ bxwdyrEJ9bWpWhMGmPM4fMJT4ievTirTidlkerKLB7/16VeMJBtrgRF1rpUSu2grFfUM YwDnOZgmzqfUhgCD1BDSUudX0+makZ9ZrU5oblmJaIoG3qWRP14+nkX1ClDETfLQXPDY Glxg== X-Gm-Message-State: AJIora9tH1dRh2KJJXroUi4AtlWAj+AZ8mPFRgamEWVUhS7zOyGZHxCC de7ZEjbeOBApyqFqsAakTNQfkkO/D+QN0LdHgPyE2yHidOc= X-Google-Smtp-Source: AGRyM1u/Y41i0+epHrE5aeS4tD4KuZjj/fGorKGfbuSbznHPFDtiI3vWabGP57F5kWxGN+DeL/6nSlz88QtM4Oa2Zos= X-Received: by 2002:a05:6870:ac14:b0:10c:59bf:fc19 with SMTP id kw20-20020a056870ac1400b0010c59bffc19mr15487oab.270.1657249246352; Thu, 07 Jul 2022 20:00:46 -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: Michael Loftis Date: Thu, 7 Jul 2022 21:00:30 -0600 Message-ID: Subject: Re: Mailman and obhttpd To: Software Info Cc: Nick Kostirya via freebsd-stable Content-Type: multipart/alternative; boundary="000000000000a2326805e3426840" X-Rspamd-Queue-Id: 4LfJ1s04qYz3CQR X-Spamd-Bar: - Authentication-Results: mx1.freebsd.org; dkim=pass header.d=wgops.com header.s=gm01 header.b=Qz4fcm8m; dmarc=none; spf=pass (mx1.freebsd.org: domain of mloftis@wgops.com designates 2001:4860:4864:20::34 as permitted sender) smtp.mailfrom=mloftis@wgops.com X-Spamd-Result: default: False [-1.46 / 15.00]; NEURAL_HAM_SHORT(-0.96)[-0.955]; R_DKIM_ALLOW(-0.20)[wgops.com:s=gm01]; R_SPF_ALLOW(-0.20)[+ip6:2001:4860:4000::/36]; MIME_GOOD(-0.10)[multipart/alternative,text/plain]; MLMMJ_DEST(0.00)[freebsd-stable]; FREEMAIL_TO(0.00)[gmail.com]; ARC_NA(0.00)[]; MIME_TRACE(0.00)[0:+,1:+,2:~]; BLOCKLISTDE_FAIL(0.00)[2001:4860:4864:20::34:server fail]; FROM_EQ_ENVFROM(0.00)[]; RCVD_TLS_LAST(0.00)[]; RCVD_IN_DNSWL_NONE(0.00)[2001:4860:4864:20::34:from]; DKIM_TRACE(0.00)[wgops.com:+]; ASN(0.00)[asn:15169, ipnet:2001:4860:4864::/48, country:US]; PREVIOUSLY_DELIVERED(0.00)[freebsd-stable@freebsd.org]; FROM_HAS_DN(0.00)[]; RCPT_COUNT_TWO(0.00)[2]; DMARC_NA(0.00)[wgops.com]; TO_DN_ALL(0.00)[]; TO_MATCH_ENVRCPT_SOME(0.00)[]; RCVD_COUNT_TWO(0.00)[2] X-ThisMailContainsUnwantedMimeParts: N --000000000000a2326805e3426840 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Not an expert on the openbsd https but from what I recall Your root should 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 directory, which obviously won=E2=80=99t work. =E2=80=A6 the latter tells it to take the URI and strip= one component off to complete the filesystem part to the CGI=E2=80=A6 On Thu, Jul 7, 2022 at 14:12 Software Info wrote: > 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 possessors into trouble of all kinds." -- Samuel Butler --000000000000a2326805e3426840 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
Not an expert on the openbsd https but from what I r= ecall Your root should look more like root { =E2=80=9C/usr/local/mailman/cgi-bin=E2=80=9C, strip 1 } =E2=80=94 your c= urrent configuration is telling it to exec the directory, which obviously w= on=E2=80=99t work. =E2=80=A6 the latter tells it to take the URI and strip = one component off to complete the filesystem part to the CGI=E2=80=A6

On Thu, Jul 7, 2022 at 14:12 Software Info <softwareinfojam@gmail.c= om> wrote:
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/Mailma= n/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 f= or getting its possessors
into trouble of all kinds."
-- Samuel = Butler
--000000000000a2326805e3426840--