Hi,
My setup is like
Squid reverse-proxy -- sends request to--> Apache-server ---.--> JBoss app server (using mod_jk)
I want to get the clients IP address in my java application, running in JBoss.
In my apache access.log, I can see the clients IP address (as the apache LogFormat is using X-Forwaded-For)
But
String ipAddress = request.getHeader("X-FORWARDED-FOR");
in Java returns NULL.
What could be the issue?
Could I be missing something in my mod_jk configuration ?
thank you?