Skip to content

Conversation

@susnux
Copy link
Contributor

@susnux susnux commented Jun 10, 2024

Summary

When using Apache with DirectorySlash it will respond with 301 and the URL with trailing slash. But when using traefik as the reverse proxy it can not rewrite redirects, this leads to the problem that the Apache response is using HTTP in the redirect but the real server (traefik) is only listening on HTTPS.

The URL "sanitizing" of the "API" class rendered the current approach useless as it was removing the trailing slash again...

Checklist

@susnux susnux requested review from a team, nfebe, sorbaugh and szaimen and removed request for a team June 10, 2024 14:23
@susnux
Copy link
Contributor Author

susnux commented Jun 10, 2024

/backport to stable28

@susnux susnux requested review from Pytal and removed request for sorbaugh June 10, 2024 14:23
@kesselb
Copy link
Contributor

kesselb commented Jun 10, 2024

The URL "sanitizing" of the "API" class rendered the current approach useless as it was removing the trailing slash again...

Good finding! Who would expect that 🤷

I assume that should also fix #45378 and therefore added a link to it.

@susnux susnux linked an issue Jun 10, 2024 that may be closed by this pull request
8 tasks
…tizing

When using Apache with `DirectorySlash` it will respond with 301 and the URL with trailing slash.
But when using traefik as the reverse proxy it can not rewrite redirects, this leads to the problem
that the Apache response is using HTTP in the redirect but the real server (traefik) is only listening on HTTPS.

Signed-off-by: Ferdinand Thiessen <[email protected]>
@susnux susnux force-pushed the fix/health-check-traefik branch from d21e3de to 00c077b Compare June 10, 2024 19:25
@susnux
Copy link
Contributor Author

susnux commented Jun 10, 2024

/compile

@susnux susnux enabled auto-merge June 10, 2024 19:25
Signed-off-by: nextcloud-command <[email protected]>
@susnux
Copy link
Contributor Author

susnux commented Oct 8, 2024

/backport to stable30

@solracsf
Copy link
Member

/backport 00c077b to master

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

Successfully merging this pull request may close these issues.

[Bug]: using proxy, wrong cloud port used when trying to enable / disable an app

7 participants