Re: [QUAR] Equivalent functionality when FTP gets shut down

David Croft <[email protected]>
Newsgroups gmane.linux.debian.user.mirrors
Message-ID <CAKcwzC+8OP9xvmj4xz6FzFekWnXZtZwF6KbNqptFxo00JO5-Og@mail.gmail.com>
On 23 May 2017 at 19:45, Fredrik Tolf <[email protected]> wrote:
> I just saw the announcment on the home page that the FTP servers are going
> to be shut down. I'm all fine with that, but I'd like to request that the
> indices of the HTTP servers be updated to be able to show the targets of
> symlinks.

I can't see a way to do this directly in Apache, but I've achieved it here:

http://debian.mirror.uk.sargasso.net/debian/dists/

using this script:

#!/bin/bash
cd /mnt/mirror/debian/debian.mirror.uk.sargasso.net
find . -type l -printf "AddDescription \"(-&gt; %l)\" XYZ%p\n" | sed
's/ XYZ\.\// /g' > .htaccess

and making it run after sync with a hook in ftpsync.conf:

HOOK4=/mnt/mirror/debian/regenerate-symlinks

and enabling descriptions in Apache:

IndexOptions -SuppressDescription

This file might be better generated on the mirror master though.

Regards,

David
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.