Wrox Programmer Forums
Go Back   Wrox Programmer Forums > Java > Java Open Source > Apache Tomcat
|
Apache Tomcat General discussion of the Apache Tomcat servlet container. For discussions specific to the Professional Apache Tomcat book, please see the book discussion forum for that book.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the Apache Tomcat section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old January 19th, 2009, 06:19 PM
Registered User
 
Join Date: Jan 2009
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Default 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.

John





Similar Threads
Thread Thread Starter Forum Replies Last Post
Ms Access front End with Oracle 10g Back End rahul123 Oracle 1 July 9th, 2007 01:03 AM
Oracle back-end MS-Access 2003 client front-end Corey Access 2 February 16th, 2007 08:31 AM
Oracle Back End - MS Access Front End - Multi User ckaliveas Oracle 1 February 1st, 2007 06:00 AM
SQL server with excel as front-end Stanny SQL Server 2000 0 February 12th, 2005 07:05 AM
using msde and sqlserver with access front-end catkins Pro VB 6 1 April 1st, 2004 04:00 AM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.