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

Fix slash redirect and 403 nginx dir indexing #1528

Merged
merged 2 commits into from
Jul 15, 2022

Conversation

GeorgianaElena
Copy link
Member

Fixes slash redirect and 403 error when accessing the web content (ref #1505 (comment)). (follow-up to #1520)

  • absolute redirects need to be turned off, otherwise, the redirect from slashless version to slash version is to an absolute address of the nginx server, which doesn't make any sense from the outside network (reference)

  • the 403 showing this in the logs:

     directory index of "/srv/content/repo" is forbidden
    

    I guess, adding the trailing slash to the repo content directory fixed this by generating the correct path to the index file.

P.S. > why are the nginx config + errors are confusing 💥

Copy link
Contributor

@consideRatio consideRatio left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM, nice work figuring these details out!!

@GeorgianaElena GeorgianaElena merged commit 0180d9a into 2i2c-org:master Jul 15, 2022
@GeorgianaElena GeorgianaElena deleted the fix-403 branch July 15, 2022 13:35
@github-actions
Copy link

🎉🎉🎉🎉

Monitor the deployment of the hubs here 👉 https://github.com/2i2c-org/infrastructure/actions/workflows/deploy-hubs.yaml?query=branch%3Amaster

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
No open projects
Archived in project
Development

Successfully merging this pull request may close these issues.

2 participants