Bug 222678 - wrong HTTPS redirect on https://ftp.freebsd.org/pub/FreeBSD/doc/
Summary: wrong HTTPS redirect on https://ftp.freebsd.org/pub/FreeBSD/doc/
Status: Closed FIXED
Alias: None
Product: Documentation
Classification: Unclassified
Component: Books & Articles (show other bugs)
Version: Latest
Hardware: Any Any
: --- Affects Only Me
Assignee: Wolfram Schneider
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2017-09-29 09:32 UTC by Wolfram Schneider
Modified: 2017-10-01 13:51 UTC (History)
2 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Wolfram Schneider freebsd_committer freebsd_triage 2017-09-29 09:32:09 UTC
On the page https://www.freebsd.org/doc/handbook/introduction.html
is a link in the footer to download the documentation

"All FreeBSD documents are available for download at http://ftp.FreeBSD.org/pub/FreeBSD/doc/ "

The link http://ftp.FreeBSD.org/pub/FreeBSD/doc/ works fine. However, if you replace it with an HTTPS link

https://ftp.FreeBSD.org/pub/FreeBSD/doc/

you will be redirect to 
https://download.freebsd.org/pub/FreeBSD/doc/

and get a HTTP status 404


I'm not sure if the redirect from "ftp.freebsd.org" to "download.freebsd.org" is by intention. But if we do this, then the redirect link should be apparently

https://download.freebsd.org/ftp/doc/
Comment 1 Benjamin Kaduk freebsd_committer freebsd_triage 2017-09-29 23:54:34 UTC
IIRC the redirect from ftp to download came when we realized that 'ftp' is a silly name when no one is using the FTP protocol to download things, and "download.freebsd.org" reads almost like a direction to "download FreeBSD", which has some advertising value.  So, download became the authoritative name but the ftp name was retained for compatibility.

I would support changing the link to be to https://download.freebsd.org/ftp/doc/
Comment 2 Wolfram Schneider freebsd_committer freebsd_triage 2017-10-01 10:45:32 UTC
I agree that "download" is a better hostname than "ftp", and that we should fix the links in our documentation.
Comment 3 commit-hook freebsd_committer freebsd_triage 2017-10-01 12:06:16 UTC
A commit references this bug:

Author: wosch
Date: Sun Oct  1 12:05:26 UTC 2017
New revision: 51014
URL: https://svnweb.freebsd.org/changeset/doc/51014

Log:
  change download links from ftp to download.freebsd.org

  PR: 222678

Changes:
  head/ko_KR.UTF-8/share/xml/freebsd-xhtml.xsl
  head/ru_RU.KOI8-R/share/xml/freebsd-xhtml.xsl
  head/share/xml/freebsd-xhtml-common.xsl
Comment 4 commit-hook freebsd_committer freebsd_triage 2017-10-01 12:11:21 UTC
A commit references this bug:

Author: wosch
Date: Sun Oct  1 12:10:32 UTC 2017
New revision: 51015
URL: https://svnweb.freebsd.org/changeset/doc/51015

Log:
  change download links from ftp to download.freebsd.org

  PR: 222678

Changes:
  head/en_US.ISO8859-1/articles/mailing-list-faq/article.xml
Comment 5 commit-hook freebsd_committer freebsd_triage 2017-10-01 12:11:23 UTC
A commit references this bug:

Author: wosch
Date: Sun Oct  1 12:11:14 UTC 2017
New revision: 51016
URL: https://svnweb.freebsd.org/changeset/doc/51016

Log:
  change download links from ftp to download.freebsd.org

  PR: 222678

Changes:
  head/en_US.ISO8859-1/books/arch-handbook/book.xml
  head/en_US.ISO8859-1/books/developers-handbook/book.xml
  head/en_US.ISO8859-1/books/faq/book.xml
  head/en_US.ISO8859-1/books/handbook/book.xml
Comment 6 Allan Jude freebsd_committer freebsd_triage 2017-10-01 13:51:26 UTC
The other reason was that Safari on OS X, connects on port 21 no matter what, even if the URL is https://ftp.freebsd.org/

It was a workaround for that rather silly bug that prevented people clicking download links.