It has Apache installed, but I just verified this behavior using
http://some.server.com:8080 which bypasses Apache.

If you need a virtual host setup in Tomcat, modify server.xml and add a Host
element with a name parameter set to the FQDN that will be in the URL.
Alternatively, if you want some.server.com to be treated as localhost, add
an Alias tag to the localhost Host element in server.xml.

Apache VirtualHost = Tomcat Host (roughly speaking)

<Host name="some.server.com">

 ...some stuff here like Contexts, etc....

</Host>

The server.xml that comes with Tomcat has what you need already in it.  The
default server.xml file has a single virtual host (localhost) with a three
Contexts (admin, manager, examples).  Copy what you need from that.  The
Host element for localhost has a lot of stuff in it, probably stuff you
don't need.  Just delete most of it, and you should be fine.  Alternatively,
find the localhost Host element in server.xml and change the name parameter
from "localhost" to "your.server.com", restart Tomcat, and test it out and
see if the behavior is what you want, then just copy that.

John

> -----Original Message-----
> From: J. Norment [mailto:[EMAIL PROTECTED]]
> Sent: Tuesday, December 17, 2002 9:20 AM
> To: Tomcat Users List
> Subject: RE: Virtual Domains with Tomcat 4.1.12 Standalone
> 
> 
> That sounds almost exactly like what I'm trying to do.  Does 
> your test box setup also have Apache installed?  If not, what 
> did you do to get some.server.com showing up?
> 
> 
> On Tue, 17 Dec 2002 09:14:08 -0500, Turner, John wrote:
> >
> >Sorry, maybe someone else can answer your question. �I'm just not
> >understanding the problem. �I have a RH 7.3 test box setup, with two
> >virtual
> >hosts (one is localhost, the other is some.server.com), and the
> >welcome
> >files display correctly. �If it isn't working for you, I would
> >suggest that
> >the issue is with your virtual hosting configuration, not your
> >welcome
> >file/index.html configuration.
> >
> >John
> >

--
To unsubscribe, e-mail:   <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>

Reply via email to