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 BFBB51F9FE for ; Wed, 24 Feb 2021 10:25:15 +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 1lErM2-0000uz-Cd; Wed, 24 Feb 2021 11:25:14 +0100 Received: from ukl by ptx.hi.pengutronix.de with local (Exim 4.92) (envelope-from ) id 1lErM2-0004FV-08; Wed, 24 Feb 2021 11:25:14 +0100 Date: Wed, 24 Feb 2021 11:25:13 +0100 From: Uwe =?utf-8?Q?Kleine-K=C3=B6nig?= To: Eric Wong Cc: meta@public-inbox.org Subject: Re: Setup woes Message-ID: <20210224102513.wupzbvojl7g4kr5k@pengutronix.de> References: <20210223154246.uso4tc2qf5bz6qym@pengutronix.de> <20210223200124.GA26348@dcvr> <20210223213117.52p5kmhqvtafbho5@pengutronix.de> <20210223221110.GA2920@dcvr> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="tbh2y4ncq3no2ubh" Content-Disposition: inline In-Reply-To: <20210223221110.GA2920@dcvr> 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: --tbh2y4ncq3no2ubh Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Hello Eric, On Tue, Feb 23, 2021 at 10:11:10PM +0000, Eric Wong wrote: > Uwe Kleine-K=F6nig wrote: > > On Tue, Feb 23, 2021 at 08:01:24PM +0000, Eric Wong wrote: > > > > The Apache config looks as follows: > > > >=20 > > > > > > > > ServerName lore.pengutronix.de > > > >=20 > > > > ServerAdmin webmaster@localhost > > > > DocumentRoot /srv/www/lore.pengutronix.de/root > > > >=20 > > > > > > > > AllowOverride None > > > > Require all granted > > > > > > > >=20 > > > > LogLevel debug > > > >=20 > > > > ErrorLog ${APACHE_LOG_DIR}/error.log > > > > CustomLog ${APACHE_LOG_DIR}/access.log combined > > > >=20 > > > > Include conf-available/serve-cgi-bin.conf > > > > Include mods-available/rewrite.load > > > > SetEnv PI_DIR /home/lore/.public-inbox > > > > SetEnv NO_SCRIPT_NAME 1 > > > >=20 > > > > Options +ExecCGI > > > > ScriptAlias /public-inbox.cgi "/usr/lib/cgi-bin/public-inbox.cgi" > > > >=20 > > > > DirectoryIndex public-inbox.cgi > > > > RewriteEngine On > > > > RewriteCond %{REQUEST_FILENAME} !-f > > > > RewriteCond %{REQUEST_FILENAME} !-d > > >=20 > > > Perhaps it's the -d check? I haven't tested WwwListing with > > > Apache. I scraped the whole rewriting now and use: ScriptAlias / "/usr/lib/cgi-bin/public-inbox.cgi/" which gets rid of the added script name. So all my problems are fixed now. However this removes the freedom to put stuff into the document root that is then served at the matching location. Does that make this solution unsuitable for the documentation? Best regards Uwe --=20 Pengutronix e.K. | Uwe Kleine-K=F6nig | Industrial Linux Solutions | https://www.pengutronix.de/ | --tbh2y4ncq3no2ubh Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQEzBAABCgAdFiEEfnIqFpAYrP8+dKQLwfwUeK3K7AkFAmA2KYYACgkQwfwUeK3K 7AlkcQf/WgNie/jLZom0vmucVxXKUjWHbM3yCtiepnFvNcCoACQZFSa5BNuIjUSL 3ZomMnr6md8e5hpQ3/DazJwubURgPyzp3Zo1gNyUrjjogmRE4FRIqV76li/3w5e4 QBqy4ll2+wqENtV/DXaTTGMZUXuWTzyVo2FN/qY1QNBo7t3bbHetRzgWMtnWebVv 7i+Uax5In2oBdVNo/KTkfSXmOul2sqafI/HmOyVfgcemq9dvqmIvyAxscyDNLQGX BDuqIdf33+FxVv7fCiFlmb1yT6m5VSLHkWTItagR2Q3AUc1mZECCGPHrkm/9LAqS UBe/8AMiUz5mDDKGnJ8YjzYVPLLy1A== =A0ae -----END PGP SIGNATURE----- --tbh2y4ncq3no2ubh--