It's interesting. Look at the server-noexamples.xml.config file that is
supplied with TomCat. It's implied that the only difference between this
file and the standard server.xml is the context def's for the examples web
app. Yet in the server-noexamples.xml.config file:

    <Engine className="org.apache.catalina.connector.warp.WarpEngine"
     name="Apache" defaultHost="localhost" debug="0" appBase="webapps">

and in server.xml

<Engine className="org.apache.catalina.connector.warp.WarpEngine"
     name="Apache" debug="0" appBase="webapps">

The <!-- Replace "localhost" with what your Apache "ServerName" is set to
--> makes more sense in the server-noexamples.xml.config file! Did someone
slip up, perhaps?? Slap dash cut and paste?

My last email didn't explain things too well! As I understand it, server.xml
should have:

<Engine className="org.apache.catalina.connector.warp.WarpEngine"
     name="Apache" defaultHost="myserver.domain.com" debug="0"
appBase="webapps">

<Host name="myserver.domain.com" debug="0" appBase="webapps"
unpackWARs="true">

I.e. name matches defaulthost. I think this is how it's supposed to be -
that's there's at least one host and that it's name matches the engine's
defaulthost.

It's great fun - the books conflict with the documentation, user experience
conflicts with the books -and- the documentation... :)

Thanks,
 
John

 
Quote for the week:
 
Experience is not what happens to a man; it is what a man does with what
happens to him.
 
Aldous Huxley, Texts and Pretexts , (1932) p. 5


-----Original Message-----
From: Ralph Einfeldt [mailto:[EMAIL PROTECTED]]
Sent: 06 February 2002 13:31
To: Tomcat Users List
Subject: AW: TOMCAT 4.X - mod_jk


What happened is the following:

The original documents contain the comment
<!-- Replace "localhost" with what your Apache "ServerName" is set to
-->
but the example didn't contain the string 'localhost'.

Now there are two suggested solutions what was ment with that
comment.
- the entry 'name="Apache"' where the comment used localhost instead 
  of Apache
- the missing entry 'defaultHost="localhost"'

Reading the documentation on the jacarta site 
(http://jakarta.apache.org/tomcat/tomcat-4.0-doc/config/engine.html)
I think your interpretation is right. (As I'm not using tomcat, I can't
verify that)

> -----Ursprüngliche Nachricht-----
> Von: John Wadkin [mailto:[EMAIL PROTECTED]]
> Gesendet: Mittwoch, 6. Februar 2002 13:50
> An: 'Tomcat Users List'
> Betreff: RE: TOMCAT 4.X - mod_jk
> 
> Replace "localhost" with what your Apache "ServerName" is set to 
>   --> 
> - <Engine className="org.apache.catalina.connector.warp.WarpEngine"
> name="Apache" defaultHost="whatever ServerName is set to in 
> httpd.conf"
> debug="0" appBase="webapps">
>

--
To unsubscribe:   <mailto:[EMAIL PROTECTED]>
For additional commands: <mailto:[EMAIL PROTECTED]>
Troubles with the list: <mailto:[EMAIL PROTECTED]>

Reply via email to