1. The problem I’m having:
I have 2 front end Apps for one Site, one of the frontend App is suppose to visit via https://example.com.au/dashboard, every other route will be visiting main Frontend App. But it is out working for the /dashboard route, I only got white page when visiting that route.
2. Error messages and/or full log output:
PASTE OVER THIS, BETWEEN THE ``` LINES.
Please use the preview pane to ensure it looks nice.
3. Caddy version:
v2.6.4
4. How I installed and ran Caddy:
install via apt
a. System environment:
ubuntu 22.04
b. Command:
PASTE OVER THIS, BETWEEN THE ``` LINES.
Please use the preview pane to ensure it looks nice.
c. Service/unit/compose file:
PASTE OVER THIS, BETWEEN THE ``` LINES.
Please use the preview pane to ensure it looks nice.
d. My complete Caddy config:
PASTE OVER THIS, BETWEEN THE ``` LINES.
example.com {
encode gzip
handle_path /dashboard* {
reverse_proxy 123.456.789.01:3000
}
reverse_proxy 123.456.789.01:3001
@ws {
header Connection *Upgrade*
header Upgrade websocket
}
# websocket
reverse_proxy @ws localhost:4001
# main app
reverse_proxy /api/* localhost:4001
}
Please use the preview pane to ensure it looks nice.