Question
Bitbucket Server context-path configuration when reverse proxy strips path prefix
Neel Nova
0 reputation · 29 Jun 2021, 09:14 UTC
114K views
0 reputation · 29 Jun 2021, 09:14 UTC
Configure Bitbucket Server or Data Center behind a reverse proxy that removes the context-path prefix (e.g., maps /bitbucket/* to /*) so that HTTP clone URLs, REST endpoints, and static resources resolve correctly.
server.context-path but does not specify whether the value should match the external URL path (e.g., /bitbucket) or the internal path seen by the application (e.g., /).X-Forwarded-Prefix header (standard in Spring Boot 2.3+), so the application cannot detect the original prefix from the proxy./, which may fail if server.context-path is set to a non-root value.server.context-path be set to the external path (e.g., /bitbucket) or the internal path (e.g., /)?X-Forwarded-Prefix header for automatic context-path detection?A thoughtful contribution can make all the difference. Be the first to share one.
Use comments to ask for clarification. Post a solution as an answer.
No question comments on this page.