> From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] 
> Subject: server.xml
> 
> 1. works fine when called from the server machine with the link 
> localhost:8080\test\test.html

The above indicates Tomcat is listening on port 8080.  However, it's
unlikely the above actually worked with back slashes in the URL.

> 2. but http://www2.myhostmz.org/test/test.html shows page not 
> found

You left out the port number.  If you want Tomcat to use port 80 (the
browser default), change the configuration of the <Connector> element in
the server.xml file and restart Tomcat.

>       <Host name="www2.myhostmz.org" appBase="webapps">
>         <Context path="" docBase="."/>
>       </Host>

Putting <Context> elements in server.xml is strongly discouraged.  Also,
a docBase of "." indicates the app is deployed _in_ the webapps
directory rather than under it.  At best, that's inviting confusion and
disorganization.

The default app should be placed in a directory named ROOT (or packaged
in a file named ROOT.war) under the appBase directory.  If you're using
Tomcat's normal default app, you don't need a <Context> element for it
(that's the case for many apps).

 - Chuck


THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY
MATERIAL and is thus for use only by the intended recipient. If you
received this in error, please contact the sender and delete the e-mail
and its attachments from all computers.

---------------------------------------------------------------------
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to