Mingzhe_Wu
(Mingzhe Wu)
February 10, 2021, 4:35am
1
1. Caddy version (caddy version
):
2.3.0
2. How I run Caddy:
From PowerShell?
a. System environment:
Windows 10
b. Command:
.\caddy_windows_amd64.exe start
c. Service/unit/compose file:
NA
d. My complete Caddyfile or JSON config:
localhost {
handle_path /qbittorrent {
reverse_proxy http://192.168.123.30:8008
}
handle_path /jellyfin {
reverse_proxy http://192.168.123.30:8096
}
}
3. The problem I’m having:
Want to reverse proxy qBittorrent WebUI and Jellyfin. Everything works as intended with Caddyfile:
localhost {
handle {
reverse_proxy http://192.168.123.30:8008
}
}
or
localhost {
handle {
reverse_proxy http://192.168.123.30:8096
}
}
However, if path matchers are added, qBittorrent shows WebUI with no content and Jellyfin goes completely blank.
4. Error messages and/or full log output:
https://paste.ubuntu.com/p/9pZrny4Sss/
5. What I already tried:
NA
6. Links to relevant resources:
NA
Path matching in Caddy is exact, so /qbittorrent
will only match exactly /qbittorrent
. What you need is to add a *
at the end to match every other subpath, i.e. /qbittorrent*
.
That said, be aware that you may run into issues when proxying to apps using subpaths. See the below article for an explanation. Generally, I recommend using subdomains for each service instead.
Have you ever tried to reverse proxy an app into its own little subfolder of your domain name?
Makes things neat, doesn’t it? Using example.com/foo/ for one app, example.com/bar/ for another. If you’re coming here from one of the selfhosted communities, you might be thinking along the lines of example.com/sonarr/, example.com/radarr/ etc.
Chances are, you’ve tried some configuration along these lines:
example.com {
redir /sonarr /sonarr/
handle_path /sonarr/* {
reverse_proxy localhost…
1 Like
Mingzhe_Wu
(Mingzhe Wu)
February 12, 2021, 3:58pm
3
Thank you for your information!
1 Like
system
(system)
Closed
March 12, 2021, 4:35am
4
This topic was automatically closed after 30 days. New replies are no longer allowed.