andxa
(andxa)
September 19, 2023, 8:38am
1
my caddy ver is 2.7.4
I attempted to point a site to a subpath through reverse proxy
http://s.cge.hm {
file_server
reverse_proxy * www.kaiquan365.com {
header_up Host {upstream_hostport}
header_up X-Real-IP {remote_host}
header_up X-Forwarded-Host {host}
}
}
http://x.cge.hm {
file_server
reverse_proxy /s/* www.kaiquan365.com {
header_up Host {upstream_hostport}
header_up X-Real-IP {remote_host}
header_up X-Forwarded-Host {host}
}
}
Two configuration files, if the reverse proxy is configured in the root path, everything is normal
But if the path of the reverse proxy contains a subpath, then all the images displayed are incorrect
See this article (it’s not a bug):
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…
Please completely fill out the help topic template, as per the forum rules. We can’t help any further otherwise.
1 Like
system
(system)
Closed
October 20, 2023, 2:19pm
4
This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.