https://bz.apache.org/bugzilla/show_bug.cgi?id=64634
--- Comment #5 from cst...@ephibian.com --- Yeah sorry for the mixup. I had initially tried to get this to work a year ago and recalled seeing an error then, but I can't seem to replicate it again now. I had just done a quick test of it again to verify before posting this ticket. I was expecting to see the ip address change in the Access log %a variable which it didn't. Well apparently in order to see the affect of the RemoteIpValve in the Access Log, you have to set requestAttributesEnabled="true" on the AccessLogValve. So now I'm seeing %a change to <ip>:<port> from the X-Forwarded-For header. However the IP from request.getRemoteAddr() hasn't changed. I'm a little surprised to see the port still part of it because of this bit of code of RemoteIpValve would seem to strip it: int portIndex = Host.parse(hostHeaderValue); if (portIndex > -1) { log.debug(sm.getString("remoteIpValve.invalidHostWithPort", hostHeaderValue, hostHeader)); hostHeaderValue = hostHeaderValue.substring(0, portIndex); } I'll continue investigating what/where the root issue is. -- You are receiving this mail because: You are the assignee for the bug. --------------------------------------------------------------------- To unsubscribe, e-mail: dev-unsubscr...@tomcat.apache.org For additional commands, e-mail: dev-h...@tomcat.apache.org