Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Webserver file lists require trailing slashes for relative links. #571

Open
kuepe-sl opened this issue Nov 4, 2022 · 0 comments
Open

Webserver file lists require trailing slashes for relative links. #571

kuepe-sl opened this issue Nov 4, 2022 · 0 comments
Assignees

Comments

@kuepe-sl
Copy link
Contributor

kuepe-sl commented Nov 4, 2022

After starting the Quetz server, visiting http://127.0.0.1:8000/get/channel0 or http://127.0.0.1:8000/get/channel0/linux-64 results in broken links.

Example: http://127.0.0.1:8000/get/channeldata.json
should be: http://127.0.0.1:8000/get/channel0/channeldata.json

The problem here is, that the delivered HTML documents require a trailing slash at the end of the URL.
Visiting http://127.0.0.1:8000/get/channel0/ makes the links work.

The Anaconda servers avoid that problem by automatically redirecting to a path that includes the trailing slash.

$ wget --spider https://repo.anaconda.com/miniconda

--2022-11-04 16:09:51--  https://repo.anaconda.com/miniconda
Resolving repo.anaconda.com (repo.anaconda.com)... 104.16.131.3, 104.16.130.3, 2606:4700::6810:8203, ...
Connecting to repo.anaconda.com (repo.anaconda.com)|104.16.131.3|:443... connected.
HTTP request sent, awaiting response... 302 Found
Location: /miniconda/ [following]

--2022-11-04 16:09:52--  https://repo.anaconda.com/miniconda/
Connecting to repo.anaconda.com (repo.anaconda.com)|104.16.131.3|:443... connected.
HTTP request sent, awaiting response... 200 OK
@janjagusch janjagusch self-assigned this Feb 16, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants