From nobody Sat Jul 30 18:36:02 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 4LwCl16wV2z4XDYG for ; Sat, 30 Jul 2022 18:36:13 +0000 (UTC) (envelope-from softwareinfojam@gmail.com) Received: from mail-oa1-x2b.google.com (mail-oa1-x2b.google.com [IPv6:2001:4860:4864:20::2b]) (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 4LwCl02B0rz3Rhw for ; Sat, 30 Jul 2022 18:36:12 +0000 (UTC) (envelope-from softwareinfojam@gmail.com) Received: by mail-oa1-x2b.google.com with SMTP id 586e51a60fabf-10ea30a098bso4402136fac.8 for ; Sat, 30 Jul 2022 11:36:12 -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=TqnEfpiAKEWfNP2GljznceDfaWOEpw1F2TCIqlbtsMk=; b=HNjBXJn/GBjerGRblYs+NHxcfStTpycN1wGTTjWxcuab2Zr/TD1VdKU1OP7UjIGDzW Y4cNUYmFTC5Tf7UGaJ6EmprFlh0e3pVaieGc1byiG0SK4VQZzpvDMcyimmUCbr9MepO2 nZfu1bTsXhD7BU646abxXLkepEgC2QTxwK/rj75TK92AQrCmHFGbB5wEq1Wm6IFGhqEy aWvvXHp46eiZccgu5x+nUkOI27oYMRX+kxyZcqyEUTU0rScvn6ylRv2xMvCVRCS4Ywfn DtMC2MPujuPr5ff1pxzRnTew8wd4i9cr8XDJ437IkcB7uP+u4dYeVf21M20i5JSAcNJZ 69cw== 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=TqnEfpiAKEWfNP2GljznceDfaWOEpw1F2TCIqlbtsMk=; b=PZnO1xeFFWvux6uPImLlGK3alzGfOx+Ks4N7Jn208x7FHM2vu9KgTltIVdz4ZbABAL YJ4K/t2x6fZxiNMXmcrZBVO1nmTUEyL8l6Pk3XC/qZtkvfD8XE965ezteq9tJzaGm5xg YyNUpszGq4k6wsxQOPG/3gy/ey8xaE/WjB82/j+yBBB+TNUUARdc6PwJdAdp955zXdQ1 Z3g/d/q6wqvUyUXegzh1fRpyZsoLaAjx6yySxKTeuy+mkSSRlyacsGQo7nNlMxqiOQk0 WTF7pC+yyzgKuB+mzv4ICdvXGUzSU2ihAQ+dPvU+yhIIQE7MQ7SYR2J9aGMzIv+kMLi2 IOtA== X-Gm-Message-State: AJIora/Quctzwo0IrYDYHKcbVHW3bsKTVvHpX4JTbPoHv/bXa80lusyj k0jkLGzbTDnEIxkqo3plQzIJktCuS+FnmuB+ktXr9gSSYWk= X-Google-Smtp-Source: AGRyM1vBl8CnuHvJt7Hla+dOsicT3OfjAdSF3wImGfDWY+KH4M+F8er2War7dq5CVrsHzwZ38c5vSjocPJsPN6kebpg= X-Received: by 2002:a05:6870:888d:b0:10d:6b96:2074 with SMTP id m13-20020a056870888d00b0010d6b962074mr4590752oam.218.1659206171382; Sat, 30 Jul 2022 11:36:11 -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: Sat, 30 Jul 2022 13:36:02 -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: 4LwCl02B0rz3Rhw X-Spamd-Bar: --- Authentication-Results: mx1.freebsd.org; dkim=pass header.d=gmail.com header.s=20210112 header.b="HNjBXJn/"; dmarc=pass (policy=none) header.from=gmail.com; spf=pass (mx1.freebsd.org: domain of softwareinfojam@gmail.com designates 2001:4860:4864:20::2b as permitted sender) smtp.mailfrom=softwareinfojam@gmail.com X-Spamd-Result: default: False [-3.94 / 15.00]; NEURAL_HAM_LONG(-1.00)[-0.996]; NEURAL_HAM_SHORT(-0.99)[-0.995]; NEURAL_HAM_MEDIUM(-0.95)[-0.948]; DMARC_POLICY_ALLOW(-0.50)[gmail.com,none]; R_SPF_ALLOW(-0.20)[+ip6:2001:4860:4000::/36]; R_DKIM_ALLOW(-0.20)[gmail.com:s=20210112]; MIME_GOOD(-0.10)[text/plain]; MID_RHS_MATCH_FROMTLD(0.00)[]; MLMMJ_DEST(0.00)[freebsd-stable@freebsd.org]; RCVD_TLS_LAST(0.00)[]; MIME_TRACE(0.00)[0:+]; FROM_EQ_ENVFROM(0.00)[]; ASN(0.00)[asn:15169, ipnet:2001:4860:4864::/48, country:US]; FREEMAIL_ENVFROM(0.00)[gmail.com]; RCVD_IN_DNSWL_NONE(0.00)[2001:4860:4864:20::2b:from]; DKIM_TRACE(0.00)[gmail.com:+]; RCVD_COUNT_TWO(0.00)[2]; FROM_HAS_DN(0.00)[]; ARC_NA(0.00)[]; RCPT_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 Put this down for a while. Eventually came back to it. Apparently, the proper syntax is location "/Mailman/*" { fastcgi socket "/var/www/run/slowcgi.sock" root "/usr/local/mailman/cgi-bin/" request strip 1 Works perfectly now. Thanks. On Fri, Jul 8, 2022 at 12:03 AM Software Info w= rote: > > 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 sho= uld look more like root { =E2=80=9C/usr/local/mailman/cgi-bin=E2=80=9C, str= ip 1 } =E2=80=94 your current configuration is telling it to exec the direc= tory, 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 posses= sors > > into trouble of all kinds." > > -- Samuel Butler