Yes, you need to add a Host container to server.xml for toucan.pnl.gov.
It would look like this:
Host name=toucan.pnl.gov some=other-options /
And then inside that container you would have a Context container for your
app. See the docs on the Host and Context containers:
http://jakarta.apache.org/tomcat/tomcat-4.1-doc/config/host.html
http://jakarta.apache.org/tomcat/tomcat-4.1-doc/config/context.html
Basically, the default server.xml has a Host container for localhost and a
Context for /examples. You want to add a Host container for
toucan.pnl.gov and a Context container for /yourapp.
After you get the Host container in there for toucan.pnl.gov, you want to
add an ApacheConfig Listener element to it. This will generate the
appropiate addition to mod_jk.conf, with the appropriate Apache VirtualHost
directives for toucan.pnl.gov.
John
-Original Message-
From: Whyatt, Marie V [mailto:marie.whyatt;pnl.gov]
Sent: Tuesday, October 29, 2002 4:59 PM
To: 'Tomcat Users List'
Subject: Tomcat gives servlets thru Apache but only for localhost
Apologies if I haven't found this answered in the archives...
From the same system Apache and Tomcat are running on
(toucan), I can see
Tomcat's HelloWorldExample servlet if I use either of the URLs:
http://localhost/examples/servlets/HelloWorldExample or
http://toucan/examples/servlets/HelloWorldExample
But I get a 404 Not Found if I use the full host URL
(toucan.pnl.gov) or
IP address, or if I try from a browser on another computer.
I'm guessing I only have Tomcat configured to work in standalone mode
because I see localhost specified in Tomcat's server.xml, in the
auto-generated mod_jk.conf file, and in
jk/workers.properties; and so I'm
thinking I must add configuration information for
non-standalone -- the
trouble is reading the Tomcat documentation and experimenting with
server.xml configurations have gotten me nowhere.
I'm using Apache's httpd.conf with only minimal modifications and I'm
suspicious I may need to add more to it than the command to
Include the
auto-generated mod_jk.conf file -- perhaps AddModule
libexec/mod_jk.so?
Do I also have to define a virtual host for Tomcat to talk to?
Any guidance is greatly appreciated,
- Marie
([EMAIL PROTECTED])
--
To unsubscribe, e-mail:
mailto:tomcat-user-unsubscribe;jakarta.apache.org
For additional commands, e-mail:
mailto:tomcat-user-help;jakarta.apache.org
--
To unsubscribe, e-mail: mailto:tomcat-user-unsubscribe;jakarta.apache.org
For additional commands, e-mail: mailto:tomcat-user-help;jakarta.apache.org