:: Re: [DNG] Question about amprolla
Top Page
Delete this message
Reply to this message
Author: aitor
Date:  
To: dng
Subject: Re: [DNG] Question about amprolla
Hi Ralph,

On 23/9/25 1:04, Ralph Ronnquist via Dng wrote:

> You would notices that all the filenames of Devuan's *Packages files
> have the DEVUAN or DEBIAN directory component.


Yes. In the case of gnuinos, they have GNUINOS, DEVUAN or DEBIAN.


> This is done to support web server re-write rules (in the package mirrors) to map the
> filenames to either of the Devuan pool URLs or the Debian pool URLs.


I understand. If you're using apache, I suppose that you'll have some .htaccess file
containing something like this:

|RewriteEngine on Redirect 302 /merged/pool/DEVUAN
http://deb.devuan.org/devuan/pool||Redirect 302 /merged/pool/DEBIAN http://deb.debian.org/debian/pool or,
if you're using nginx, ||some config file, e.g. |//etc/nginx/sites-available/default/|||: ||location / { autoindex on; rewrite /packages/merged/pool/DEVUAN/(.*)
http://deb.devuan.org/devuan/pool/$1;||rewrite /packages/merged/pool/DEBIAN/(.*)
http://deb.debian.org/debian/pool/$1;||} |

Here you are my .htaccess:

     RewriteEngine on
     Redirect 302 /merged/pool/DEVUANhttp://deb.devuan.org/devuan/pool   
     Redirect 302 /merged/pool/mainhttp://deb.debian.org/debian/pool/main
     Redirect 302 /merged/pool/DEBIAN/mainhttp://deb.debian.org/debian/pool/main
     Redirect 302 /merged/pool/GNUINOShttp://packages.gnuinos.org/gnuinos/pool
     Redirect 302 /merged/pool/DEBIAN-SECURITY/updates/mainhttp://security-cdn.debian.org/debian-security/pool/updates/main



However, currently the first re-write rule is configured as follows:

     Redirect 302 /merged/pool/DEVUANhttp://deb.devuan.org/packages/devuan/pool


I suppose that, with this change, packages.gnuinos.org is working for the rest of the users as well. But this is a guess.


It's worth to clarify that this is done in the server side to support the package mirrors re-write rules, as you have pointed out above.
But when I run the amprolla scripts to merge the repo (in local, because I haven't a dedicated server), then I tend to point to
pkgmaster.devuan.org because is troubling me less than deb.devuan.org when it comes to download all the stuff.


> You should also keep in mind that deb.devuan.org resolves to a number
> of different servers for URL rewriting and it does happen that on
> occasion some server might feature misconfiguration.


Indeed, it rarely happens :)

Cheers,

Aitor.