tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From André Warnier ...@ice-sa.com>
Subject Re: getServerName returns 'localhost'
Date Wed, 03 Mar 2010 14:33:22 GMT
vgud wrote:
> Exactly. So, could it be configured somehow to make me able get correct
> domain?
> 
> Ronald Klop wrote:
>> Did you do something like this in server.xml?
>>
>> <Engine defaultHost="localhost">
>>    <Host name="localhost" />
>> </Engine>
>>
Maybe try this :

 >> <Engine defaultHost="localhost">
 >>    <Host name="localhost">
	<Alias>www.example.com</Alias>
	<Alias>another.example.com</Alias>
	<Alias>athird.example.com</Alias>
       </Host>
 >> </Engine>

(I mean specify the different domain names of your host explicitly as 
aliases)

Does it work then ?

(And sorry for the previous answer; I asked the right questions, but 
then gave the wrong answer anyway :-( )

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


Mime
View raw message