> From: Caldarale, Charles R [mailto:chuck.caldar...@unisys.com] > Subject: RE: getServerName returns 'localhost' > > The code shows that the HOST header is being used by getServerName(). > Testing with the RequestDumperFilter enabled in examples/WEB- > INF/web.xml shows that it works as documented; here's a portion of the > output from Tomcat running on my desktop with the default <Host> name > of localhost: > serverName=usrv-caldarcr.na.uis.unisys.com > serverPort=8080
The above works with 6.0.24 using both Jio and Nio connectors, with and without APR. Also works on 5.5.26 with the standard connector (haven't tried it with APR). - Chuck THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY MATERIAL and is thus for use only by the intended recipient. If you received this in error, please contact the sender and delete the e-mail and its attachments from all computers. --------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org