Hello Eric, On Tue, Feb 23, 2021 at 10:11:10PM +0000, Eric Wong wrote: > Uwe Kleine-König wrote: > > On Tue, Feb 23, 2021 at 08:01:24PM +0000, Eric Wong wrote: > > > > 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 > > > > > > 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 -- Pengutronix e.K. | Uwe Kleine-König | Industrial Linux Solutions | https://www.pengutronix.de/ |