How to forward the real Client IP instead of Proxy IP to the backend server

1. The problem I’m having:

I am trying to use Caddy as a reverse proxy. The problem is that my backend server detects requests as flood attack and limits the connections wince they are being sent from a single IP Address.

The configuration is easy as following

‘’‘Domain.com:8080 {
reverse_proxy xx.xx.xx.xx:8080
}’‘’

Now I have just a simple question :slightly_smiling_face:

Can someone provide me a correct configuration how can I pass the Client IP to the server instead of the Proxy IP?

If you can provide me a full sample I would appreciate as I have been looking for two days and no luck to find the right info.

Caddy passes that header by default when reverse proxying.

Is your backend configured to trust caddy as a proxy?

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