You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tomcat.apache.org by Matt Anderson <ma...@postoffice.csu.edu.au> on 2006/03/19 06:24:32 UTC
Virtual Host configuration
Hi All,
I was configuring the virtual hosting using version 5.5.15 and I found
something different to what I remember. When I add a host for
www.somedomain.com.au and I then enter in http://somedomain.com.au it does
not work unless I add the www. at the beginning... To get around this I
added to hosts with the following names and this solution works.
www.somedomain.com.au
somedomain.com
but surely I am making some sort of mistake, why do I need to add the two
hosts in order to have the same address load the same web application. I
remeber in the past it did not matter, I added one and the other was
recognised. I am hoping I have explained it well enough and if anyone can
shed some light on this situation it would be greatly appreciated! Thanks in
advance.
Matt
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org
Re: Virtual Host configuration
Posted by Nic Daniau <ni...@googlemail.com>.
Never really done this myself, but there is something about host aliases in
the docs for 5.5:
http://tomcat.apache.org/tomcat-5.5-doc/config/host.html#Host%20Name%20Aliases
Does this help?
Nic
On 19/03/06, Matt Anderson <ma...@postoffice.csu.edu.au> wrote:
>
> Hi All,
>
> I was configuring the virtual hosting using version 5.5.15 and I found
> something different to what I remember. When I add a host for
> www.somedomain.com.au and I then enter in http://somedomain.com.au it does
> not work unless I add the www. at the beginning... To get around this I
> added to hosts with the following names and this solution works.
>
> www.somedomain.com.au
> somedomain.com
>
> but surely I am making some sort of mistake, why do I need to add the two
> hosts in order to have the same address load the same web application. I
> remeber in the past it did not matter, I added one and the other was
> recognised. I am hoping I have explained it well enough and if anyone can
> shed some light on this situation it would be greatly appreciated! Thanks
> in
> advance.
>
> Matt
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
> For additional commands, e-mail: users-help@tomcat.apache.org
>
>