> ge0rge wrote:
....
> > Just a shot in the dark ... Have you configured the hosts file on your
> > system? It should have at least a couple of entries like -
> > 127.0.0.1 localhost # for loopback
> > 192.168.1.250 perseus # some name for my machine
"Florian Laabs" <Florian.Laabs DeleteThis @web.de> wrote in message
news:bn5ku6$sv4kc$1@ID-155046.news.uni-berlin.de...
> Yes, it does.
> And the hosts file looks like that.
woo hoo ... Got it to work! Basically the answer was in John Turner's howto
....
NOTE: in Tomcat, virtual hosts are "Hosts". That is, as far as Tomcat is
concerned, localhost is a virtual host. So, if you want to setup
<a style='text-decoration: underline;' href="http://www.server-a.com" target="_blank">www.server-a.com</a> and <a style='text-decoration: underline;' href="http://www.server-b.com," target="_blank">www.server-b.com,</a> you just need more copies of the Host
container included in the default server.xml that comes with Tomcat.
Here's a minimal cook book recipe -
1) make a copy of your Tomcat server.xml (safety first!)
2) edit server.xml and duplicate the xml Host tag to create another virtual
host
<Host name="localhost" ...> ... </Host>
That's some 150 lines and are found just after this line <!-- Define the
default virtual host -->
3) Now, in your new virtual host, you need to replace at least these two
references to localhost with perseus (or whatever you've called your
192.168.1.250 machine)-
a) <Host name="perseus" debug="0" ...
b) <value>perseus</value>
4) Stop Apache - stop Tomcat - start Tomcat - start Apache in that order...
and Bob's your uncle.
Now, <a style='text-decoration: underline;' href="http://localhost/examples/jsp/index.html" target="_blank">http://localhost/examples/jsp/index.html</a> or <a style='text-decoration: underline;' href="http://perseus/..." target="_blank">http://perseus/...</a> or
<a style='text-decoration: underline;' href="http://192.168.1.250/..." target="_blank">http://192.168.1.250/...</a> all work. Of course, on a production Tomcat, you'd
need to mess around a bit more with the xml file to tailor the additional
virtual host(s) to point to the correct directories as needed.
ge0rge
--
Leave no stone unturned.
-- Euripides<!-- ~MESSAGE_AFTER~ -->
>> Stay informed about: Apache + Tomcat integration - please help!