Can a caddy act as a dynamic reverse agent?

*.aa.com {
    proxy *.bb.com
}

User realization:
wap.aa.com -> wap.bb.com
can caddy do that?

Such as:
{Caddyfile}
wap.aa.com {
proxy wap.bb.com
}
m.aa.com {
proxy m.bb.com
}

I’m afraid that’s not currently possible - there’s no way to take the matched wildcard from the site label.

There’s a couple of similar requests on the Github, #1894 and #1539, although they want to match the wildcard in the configured basepath rather than the site label.

See #1639 for the issue tracking the rewrite and eventual feature upgrades for the proxy directive.

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