Tomcat w/ Apache front end - access server name?
Hi, new dunce here - I have Tomcat setup on my Linux VPS with Apache running as a front-end proxy. I have several Virtual Hosts setup to handle multiple domains.
When I use HttpServletRequest.getRemoteHost() or HttpServletRequest.getRequestURL() in a servlet it is always returning "localhost", but I need it to tell me the actual fully-qualified URL.
I think it has to do with how I have the virtual hosts set up, and how the Tomcat Connector(s) are set up, but I have searched pretty hard on Google for this with no success.
Any help much appreciated.