Take a
look at the bottom of the default server.xml. I shall include it here for
you:
<!-- Virtual host example -
In "127.0.0.1" virtual host we'll reverse "/" and
"/examples"
(XXX need a better example )
(use "http://127.0.0.1/examples" )
<Host name="127.0.0.1" >
<Context path=""
docBase="webapps/examples" />
<Context path="/examples"
docBase="webapps/ROOT" />
</Host>
-->
In "127.0.0.1" virtual host we'll reverse "/" and
"/examples"
(XXX need a better example )
(use "http://127.0.0.1/examples" )
<Host name="127.0.0.1" >
<Context path=""
docBase="webapps/examples" />
<Context path="/examples"
docBase="webapps/ROOT" />
</Host>
-->
I
figure that the 'name' attribute in the <host> tag should be the name of
the virtual host. Never tried it though.
Jord.
-----Original Message-----
From: Andrea Bertone [mailto:[EMAIL PROTECTED]]
Sent: Monday, January 29, 2001 6:24 PM
To: [EMAIL PROTECTED]
Subject: Virtual HostingCan anyone forward an example of setting up Tomcat for Virtual Hosts for .jsp pages. I figure it's something with server.xml. I use Apache for web server.Thank you,Andrea
