Hi Glen,
It definitely works with name-based hosts, because that's how I do it.
However, I set mine up like this:
Apache:
<VirtualHost www.mydomain.com>
server.xml:
<Host www.mydomain.com>
In your config, you're using an IP in the Apache VirtualHost directive and a
hostname in your server.xml config. I have a feeling that may be causing
your problems. Try changing your Apache config to use the host name in the
VirtualHost directive, rather than the IPAddress and see if that makes a
difference.
Thanks,
--jeff
> From: Glen Eustace <[EMAIL PROTECTED]>
> Reply-To: [EMAIL PROTECTED]
> Date: Mon, 21 May 2001 08:26:22 GMT
> To: [EMAIL PROTECTED]
> Subject: Re: Setting up Virtual Hosts
>
>
>>> http://mikal.org/interests/java/tomcat/index.jsp
>
>>> Look for Virtual Host or my name.
>
>> Will do. Thanks. This is very frustrating.
>
> Having browsed around in the archives, I have come to the ( possibly
> erroeous ) conclusion that tomcat does not support NAMED virtual hosts,
> but that they are actually IP based.
>
> Can someone confim whether tomcat really does use the Host: header to
> determine the virtual host or is it resolving the host in the URL to an
> IP number and then finding a host definition that matches it.
>
> Thanks.
> --
> Glen Eustace,
> GodZone Internet Services, a div. of AGRE Enterprises Ltd.,
> P.O. Box 8020, Palmerston North, New Zealand 5301
> Tel/Fax: +64 6 357 8168, Mob: +64 21 424 015
> E-mail: [EMAIL PROTECTED] Website: http://www.godzone.net.nz
>