Can I pass a request to a downstream server?

1. The problem I’m having:

I want to redirect incoming request on port 80 and 443 on a specific subdomain to another server on the network.

I have a server that handles all incoming connections on port 80 and 443 and reverse proxy to other servers on the internal network as well.

But on one server I need to set up a service that requires the ssl certificates and I therefore want to make that server serve and create the certificates needed for that subdomain.

So I want the server that handles all connections to just pass that request to the downstream server.

Is that possible?

2. Error messages and/or full log output:

3. Caddy version:


4. How I installed and ran Caddy:

a. System environment:

Docker, debian

b. Command:


c. Service/unit/compose file:

d. My complete Caddy config:

Not relevant because I want to do something that I don’t even have in the config

5. Links to relevant resources:

For that, you’d need a layer4 proxy to do TCP proxying instead of HTTP, to avoid terminating TLS. You can use GitHub - mholt/caddy-l4: Layer 4 (TCP/UDP) app for Caddy

1 Like

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