Treat a domain and subfolder as one single domain for upstream

Is it possible for Caddy to treat a domain and subfolder as one single domain for upstream? Caddyfile like this:

example.com/subfolder {
reverse_proxy 127.0.0.1:80
}

Adding some special marks to the end of subfolder might be helpful for caddy to recognize it.

Sorry if it is a stupid question.

You’ll have to elaborate. Your question isn’t clear.

Please fill out the help topic template as per the forum rules.

That said, having a path matcher as part of the site definition is deprecated, and is slated for removal.

1 Like

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