I have configured apache (version 2.4) reverse proxy to publish in our website an application installed in an internal server. All works fine, these are the lines that I added in proxy-html.conf:
ProxyPass /app/bpv0SOCPOkqptPqO6XsIvucLzO7QXJyA/ http://srvacg:9081/acgv4/
If I write this url http://www.mysite.com/app/bpv0SOCPOkqptPqO6XsIvucLzO7QXJyA/ I can login in my internal application and I can work with it.
The problem is that my application checks the client's IP address and allow only 1 connection at time for the same ip. With reverse proxy configured all the connections are done with the private ip of the server where apache is installed.
I tried to able mod_remoteip to solve this problem:
RemoteIPHeader X-Forwarded-For
But the result is always the same. This is apache access log:
REMOTE-IP: %a - LOCAL-IP: %A | X-Forwarded-For: %{X-Forwarded-For}i | h: %h | UNDERLYING CLIENT IP: %{c}a |
REMOTE-IP: 217.57.XXX.XXX - LOCAL-IP: 192.168.89.3 | X-Forwarded-For: 217.57.XXX.XXX | h: 217.57.XXX.XXX | UNDERLYING CLIENT IP: 217.57.XXX.XXX |
217.57.XXX.XXX is the client ip, 192.168.89.3 is the internal ip and is the ip received by my application. I'm not able to know how it gets this information.
Can somebody help me?