Hi Steve, 

I think that if you use the ajp connector from httpd to ofbiz then this should 
start to show proper IP addresses. 

Cheers
Sam 




On 13 Jan 2012, at 14:21, Steve Fatula wrote:

> So, using the built in ofbiz Tomcat, and, a Apache httpd front end to tomcat, 
> getRemoteAddr for ip tracking in visits returns 127.0.0.1, which I suppose it 
> should.
> 
> One can turn on stats.proxy.enabled, and that indeed often returns a single 
> IP, but, often multiple ips in a comma separated list. Since that merely uses 
> the x-forwarded-for header, that's indeed the documented behavior. But, we 
> don't want to store multiple ips.
> 
> Tomcat apparently comes with a remoteIpValve, but, not sure if this can be 
> configured into the ofbiz embedded tomcat. Probably not, unless I missed it, 
> it's not in the code.
> 
> Is there another solution to this? I want the IP that would be returned by 
> the tomcat remoteIpValve, which is the rightmost non internal address. Or, is 
> there a better way? What do people do for this?
> 
> Steve

Attachment: smime.p7s
Description: S/MIME cryptographic signature

Reply via email to