unofficial mirror of meta@public-inbox.org
 help / color / mirror / Atom feed
* Setup woes
@ 2021-02-23 15:42 Uwe Kleine-König
  2021-02-23 20:01 ` Eric Wong
  0 siblings, 1 reply; 6+ messages in thread
From: Uwe Kleine-König @ 2021-02-23 15:42 UTC (permalink / raw)
  To: meta

[-- Attachment #1: Type: text/plain, Size: 2398 bytes --]

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=0, must-revalidate
	Content-Length: 9
	Content-Type: text/plain

	Not Found

    The Apache config looks as follows:

	<VirtualHost *:80>
		ServerName lore.pengutronix.de

		ServerAdmin webmaster@localhost
		DocumentRoot /srv/www/lore.pengutronix.de/root

		<Directory "/srv/www/lore.pengutronix.de/root">
			AllowOverride None
			Require all granted
		</Directory>

		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]

	</VirtualHost>

     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

-- 
Pengutronix e.K.                           | Uwe Kleine-König            |
Industrial Linux Solutions                 | https://www.pengutronix.de/ |

[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 488 bytes --]

^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2021-02-24 11:09 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2021-02-23 15:42 Setup woes Uwe Kleine-König
2021-02-23 20:01 ` Eric Wong
2021-02-23 21:31   ` Uwe Kleine-König
2021-02-23 22:11     ` Eric Wong
2021-02-24 10:25       ` Uwe Kleine-König
2021-02-24 11:09         ` Eric Wong

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).