RemoteIPHeader/RPIF not working?
We got some Docker Containers running. In ISPConfig we add Subdomains (vHost) and add to the Apache Directives things like:
SSLProxyCheckPeerName Off
SSLProxyEngine On
SSLProxyCheckPeerCN off
SSLProxyCheckPeerExpire off
ProxyPass /.well-known !
ProxyPass / http://127.0.0.1:9504/
ProxyPassReverse / https://127.0.0.1:9504/
So this vHost acts as a Reverse Proxy and forwards all Requests to the Docker Container.
In all Logs of all Dockers, the Client (Remote Address) is 172.17.0.1 - that is the IP of the Docker Daemon, but we want the Real Client IP passed through.
I tried things like RemoteIPHeader X-Forwarded-For
and RPAF
but none of them works, the IP on he Target is always 172.17.0.1
.
Has someone figured out how to achieve that?