tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From vgud <ivan.gudi...@yahoo.com>
Subject getServerName returns 'localhost'
Date Wed, 03 Mar 2010 12:55:46 GMT

Gentlemen,

I have the application which could be accessed from different domain
addresses and I need to know from what domain request was sent. I try to get
following from request:

getRemoteHost: 127.0.0.1
getServerName: localhost

I use tomcat 5.5 and I suppose i should configure something to get correct
domain name. Can anyone help me?? Any help will be apreciated.

Best regards
-- 
View this message in context: http://old.nabble.com/getServerName-returns-%27localhost%27-tp27767838p27767838.html
Sent from the Tomcat - User mailing list archive at Nabble.com.


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org


Mime
View raw message