KnowledgeHub
Questions
Tags
Users
Search
Alex Rivera
|
Logout
Edit Question
Title
Body
I currently have a Tomcat + Apache HTTP server setting to serve my Java servlet: ProxyPass /myservice http://localhost:8080/myservice ProxyPassRerverse /myservice http://localhost:8080/myservice This is all fine except that myservice needs to know the client IP address, which always turns out to be 127.0.0.1 due to the proxy. Is there a solution to get the real IP address? Is AJP an option? doGet(HttpServletRequest request, HttpServletResponse response){ request.getRemoteAddr() }
Tags (comma-separated)
Save Edits
Cancel