Skip to content
Discussion options

You must be logged in to vote

Hi! This is a classic issue

When you reverse proxy to a subfolder like /koinsight, Caddy handles the request just fine, but the HTML returned by the application is unaware of that subfolder.

  1. You request myhost.fritz.box/koinsight.
  2. Caddy proxies it. The app returns index.html.
  3. Inside index.html, the app likely refers to its assets using "absolute" paths, like <script src="/app.js"> or <link href="/styles.css">.
  4. The Error: Your browser sees /app.js and requests myhost.fritz.box/app.js (at the root), not myhost.fritz.box/koinsight/app.js.
  5. Caddy sees the request for /app.js, sees it doesn't start with /koinsight, and returns a 404 (or your main dashboard).

Use a Subdomain

This is by far the…

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by beedaddy
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants