I would like to know if Caddy2 supports dynamic reverse proxy?

I would like to know if Caddy2 supports dynamic reverse proxy?

I use a domain name a.com and resolve it to the server

And then I want to access https://a.com/https://b.com/abc/index.php Reverse Proxy https://b.com/abc/index.php

And so on https://c.com/abc/index.php, https://d.com/abc/index.php

In the future, I only need to add the URL that requires reverse proxy after the domain name to achieve universal reverse proxy

I want to implement this feature, how should Caddyfile be configured?

I think you’re looking for a forward proxy, not a reverse proxy.

Can caddy achieve this function?
I used the variable {http.request.uri.path} to get the path, but there was a “/” in front of it.
I don’t know how to get rid of it

You can use Caddy2 support · Issue #72 · caddyserver/forwardproxy · GitHub.

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.