Mailinglist Archive: opensuse-project (252 mails)

< Previous Next >
Re: [opensuse-project] Leap 42.1 - consistent naming
On Sat, 2015-07-25 at 15:55 -0700, PatrickD Garvey wrote:

Now help me understand why
download.opensuse.org/distribution/leap/42.1-Milestone1 (note the
lack
of a trailing /)
redirects to
download.opensuse.org/distribution/leap/42.1-Milestone1/ (with /)
but
download.opensuse.org/distribution/leap/42.1 (without)
doesn't.

42.1-Milesteon1 is an actual existing directory on the server - so the
web server can 'enter' the directory and your browser correctly
reflects this with the added /

42.1 OTOH is only a server based redirect (and does not exist as a
directory on the server). And the rule HAS to be to match 42.1$ ($
being 'end of line') as otherwise there would be strange redirects
happening for everything with 42.1 in it.

In essence: the structure on the server is setup for zypper / yast as
main consumers... and for those usecases it works. For a human, there
are some special cases to consider (like adding the / ).

Am i missing something about Linux directories that I didn't learn
from using UNIX (AIX)?

Not really - just, as noted above: only one is a directory on the
server, the other is a http server configured redirect (see for example
apache's mod_rewrite for an idea)

Cheers,
Dominique

--
Dimstar / Dominique Leuenberger <dimstar@xxxxxxxxxxxx>
< Previous Next >
Follow Ups