1 Reply Latest reply on Aug 13, 2013 2:02 AM by jfclere

    mod_cluster 1.2.3 using AJP and client IP / X-Forwarded-For

    jmsjr

      Apache 2.2.x compiled from source with httpd module mod_cluster 1.2.3 compiled from source

      JBoss 7.1.3 with mod_cluster 1.2.3 also compiled from source

       

      Using AJP protocol instead of HTTP protocol from Apache httpd to JBoss 7.1.3

       

      In the access_log for JBoss 7.1.3, it shows the client IP address instead of the IP address of the Apache / httpd. While this is great, how did JBoss 7.1.3 know about the client IP address ? As the protocol is AJP and not HTTP, I cannot "see" if there is an "X-Forwarded-For" HTTP header, but using wireshark / tshark, I can see RADDR which is the remote address of the client doing the request.

       

      Does AJP translate RADDR this to the "X-Forwarded-For" HTTP header ?