title: apache ProxyPass: how to preserve original IP address
body: <p>We are using ProxyPass to redirect all "/r" requests to jboss on port 18080 as follows:</p>
  
  <pre><code>ProxyPreserveHost on
  ProxyPass /r http://localhost:18080/redirectService/
  ProxyPassReverse /r http://localhost:18080/redirectService/
  </code></pre>
  
  <p>But, that causes the IP address logged in jboss's access log as "127.0.0.1". Does somebody know how can we preserve the original IP from where the request came in HttpServletRequest? We want to acesss it from jboss servlet request in doGet()</p>