From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on dcvr.yhbt.net X-Spam-Level: X-Spam-Status: No, score=-3.4 required=3.0 tests=AWL,BAYES_00,RCVD_IN_DNSWL_HI, SPF_HELO_NONE,SPF_PASS shortcircuit=no autolearn=ham autolearn_force=no version=3.4.2 Received: from metis.ext.pengutronix.de (metis.ext.pengutronix.de [IPv6:2001:67c:670:201:290:27ff:fe1d:cc33]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange ECDHE (P-256) server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by dcvr.yhbt.net (Postfix) with ESMTPS id 703521F9FD for ; Tue, 23 Feb 2021 15:42:55 +0000 (UTC) Received: from ptx.hi.pengutronix.de ([2001:67c:670:100:1d::c0]) by metis.ext.pengutronix.de with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1lEZpn-0007M0-3O for meta@public-inbox.org; Tue, 23 Feb 2021 16:42:47 +0100 Received: from ukl by ptx.hi.pengutronix.de with local (Exim 4.92) (envelope-from ) id 1lEZpm-0005QC-HY for meta@public-inbox.org; Tue, 23 Feb 2021 16:42:46 +0100 Date: Tue, 23 Feb 2021 16:42:46 +0100 From: Uwe =?utf-8?Q?Kleine-K=C3=B6nig?= To: meta@public-inbox.org Subject: Setup woes Message-ID: <20210223154246.uso4tc2qf5bz6qym@pengutronix.de> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="ucfinujnb4f76uf3" Content-Disposition: inline X-SA-Exim-Connect-IP: 2001:67c:670:100:1d::c0 X-SA-Exim-Mail-From: ukl@pengutronix.de X-SA-Exim-Scanned: No (on metis.ext.pengutronix.de); SAEximRunCond expanded to false X-PTX-Original-Recipient: meta@public-inbox.org List-Id: --ucfinujnb4f76uf3 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Hello, I'm currently (again) trying to setup a public-inbox instance and have two problems: 1) Import of older mails I used Konstantin Ryabitsev script[1] to generate a directory of mbob files. It's unclear to me how to easily import that into the archive. Not knowing a better way, I'd put them all in a Maildir and use public-inbox-watch to import them. Is there a nicer way? 2) Apache configuration I was able to setup Apache to serve individual archives but I fail to get a list listing at the root. That is I can access the barebox archive at http://lore.pengutronix.de/barebox/, but not the overview of the archived lists at http://lore.pengutronix.de/. $ curl -D - http://lore.pengutronix.de/ HTTP/1.1 404 Not Found Date: Tue, 23 Feb 2021 15:31:54 GMT Server: Apache/2.4.38 (Debian) Expires: Fri, 01 Jan 1980 00:00:00 GMT Pragma: no-cache Cache-Control: no-cache, max-age=3D0, must-revalidate Content-Length: 9 Content-Type: text/plain Not Found The Apache config looks as follows: ServerName lore.pengutronix.de ServerAdmin webmaster@localhost DocumentRoot /srv/www/lore.pengutronix.de/root AllowOverride None Require all granted LogLevel debug ErrorLog ${APACHE_LOG_DIR}/error.log CustomLog ${APACHE_LOG_DIR}/access.log combined Include conf-available/serve-cgi-bin.conf Include mods-available/rewrite.load SetEnv PI_DIR /home/lore/.public-inbox SetEnv NO_SCRIPT_NAME 1 Options +ExecCGI ScriptAlias /public-inbox.cgi "/usr/lib/cgi-bin/public-inbox.cgi" DirectoryIndex public-inbox.cgi RewriteEngine On RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_FILENAME} !-d RewriteRule ^.* /public-inbox.cgi/$0 [L,PT] My guess is that the "SetEnv NO_SCRIPT_NAME 1" part doesn't work as expected, but after some searching in the net I didn't find how to do this properly. Any hints are welcome Best regards and thanks in advance Uwe [1] https://git.kernel.org/pub/scm/linux/kernel/git/mricon/korg-helpers.git= /plain/list-archive-maker.py --=20 Pengutronix e.K. | Uwe Kleine-K=F6nig | Industrial Linux Solutions | https://www.pengutronix.de/ | --ucfinujnb4f76uf3 Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQEzBAABCgAdFiEEfnIqFpAYrP8+dKQLwfwUeK3K7AkFAmA1InIACgkQwfwUeK3K 7An2aQf+PlupsZI+F6OUzccGLyS8LNOiCL+NfwfTeQesRiIlVPv/Fkf6pPk5QcIK oy7gwW7JgO3h9hhEZ72rB6sBJzoL2UYdCt8A+55JtaYqnKF4aJR1GONn7IasfGnX odeQN3z2pJjb7+PE+gzRA0EUyRXfzNA6x26YgncoI4ZF24uOO6VZuJRnlBKoYZhc 8xBh02h5lRlHfRxQiXN+u4aXbiKr9K4LtxRBYGbjWFm11NFOkxYTIyEgHwGdDrEB Ko4V8ceAMqfLa5Vplpf612sWmWi41LczrxlIkT90VX4gCgVzh/QVQ32zYDAPI0gs bQgL+Qj5/2jctcJFxDh26sY3H4xOYg== =iwL7 -----END PGP SIGNATURE----- --ucfinujnb4f76uf3--