This list disabled during migration

Dan Osterrath do3 at mail.inf.tu-dresden.de
Tue Jul 29 01:44:24 PDT 2003


Am Dienstag, 29. Juli 2003 03:21 schrieb Gerard Beekmans:
> On Mon, 2003-07-28 at 18:42, Tushar Teredesai wrote:
> > concerned mailing list. So if someone is trying to access a lfs-dev
> > posting, redirect them to
> > <http://linuxfromscratch.org/mailman/listinfo/lfs-dev>.
>
> Tell me how to do that and I'll see to it.

Apache can recode an URL even with patterns.
An example of my httpd.conf:

AliasMatch /dev/([0-9a-zA-z_\-]+/[0-9a-zA-Z_\-]+)(.*) "/mnt/fileserver/$1/development/actual/htdocs/$2"
<Directory "/mnt/fileserver/*/development/actual/htdocs/*>
	Options FollowSymLinks MultiViews
	Order allow,deny
	Allow from all
</Directory>

So you could redirect the old directories to the new
ones like this:
AliasMatch /mail-archives/([a-z\-]+)/([0-9a-z\-]+\.html) "/var/httpd/htdocs/pipermail/$1/$2"

Or if the filenames have changed, you could write a cgi script,
that translates them and redirects to the correct URL:
AliasMatch /mail-archives/([a-z\-]+)/([0-9a-z\-]+\.html) "/var/httpd/htdocs/cgi-bin/mailinglist_translator.pl?list=$1&file=$2"
(But this is untested by me.)

-- 
----------------------------------------------------------------------
%> ln -s /dev/null /dev/brain
%> ln -s /dev/urandom /dev/world
%> dd if=/dev/world of=/dev/brain
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: signature
URL: <http://lists.linuxfromscratch.org/pipermail/lfs-chat/attachments/20030729/50fbbaa7/attachment.sig>


More information about the lfs-chat mailing list