tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Caldarale, Charles R" <Chuck.Caldar...@unisys.com>
Subject RE: getServerName returns 'localhost'
Date Wed, 03 Mar 2010 14:30:41 GMT
> From: vgud [mailto:ivan.gudilin@yahoo.com]
> Subject: Re: getServerName returns 'localhost'
> 
> So, could it be configured somehow to make me able get 
> correct domain?

Only if you added all possible domain names and variations thereof that get to that system's
IP address(es).

As Peter suggests, the proper approach is to use the HOST header in the request.

 - 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-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org


Mime
View raw message