Reverse proxy to domain with subdomains and sub subdomains

1. Caddy version (caddy version): 2.4.3

Is it possible to config caddy reverse proxy to domain that have different sub domains and sub sub domains?

Example: {
reverse_proxy {
header_up Host {http.reverse_proxy.upstream.hotspot}
header_up X-Forwarded-Host {host}

It only proxyes target,com and other paths susch as target,com/video and etc.

But how is it possible to get proxy to video,target,com or text,instuctions,target,com?

Use request matchers to tell Caddy which requests to proxy to which subdomain instead.

Please completely fill out the help topic template. Skipping it only wastes time for both you and us in the long run.

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