apache ProxyPass: how to preserve original IP address

前端 未结 5 733
执念已碎
执念已碎 2020-12-02 12:22

We are using ProxyPass to redirect all \"/r\" requests to jboss on port 18080 as follows:

ProxyPreserveHost on
ProxyPass /r http://localhost:18080/redirectSe         


        
5条回答
  •  暗喜
    暗喜 (楼主)
    2020-12-02 13:09

    If you have the capability to do so, I would recommend using either mod-jk or mod-proxy-ajp to pass requests from Apache to JBoss. The AJP protocol is much more efficient compared to using HTTP proxy requests and as a benefit, JBoss will see the request as coming from the original client and not Apache.

提交回复
热议问题