> From: Alexander Diedler [mailto:adied...@tecracer.de]
> Subject: Multiple Context and Websites
> 
> In the /conf/Catalina/localhost/ there are tomcat1.xml  with this code:
> <?xml version='1.0' encoding='utf-8'?>
> <Context path="/tomcat1" reloadable="true"
> docBase="C:\Inetpub\tomcat\Webseite1" distributable="true"></Context>

Take out the path attribute; it's not allowed.

> and tomcat2.xml :
> <?xml version='1.0' encoding='utf-8'?>
> <Context path="/tomcat2" reloadable="true"
> docBase="C:\Inetpub\tomcat\Webseite2" distributable="true"></Context>

Take out the path attribute, it's not allowed.

> In the server.xml I add this lines:
> <Host name="tomcat1.de"

You may not need a second <Host>, depending on what you're really trying to 
achieve (which is not at all clear).

> But a http://tomcat1.de:8080/  results a 400 Error

Which it should - you have no default application for that <Host>.

> http://localhost:8080/tomcat1/  show me the content of the Application.

As it should, given your configuration.

> What´s wrong?

Nothing so far.

> I target is to have multiple Applications, that can be restarted with
> Tomcat Manager and will be opened by the URL http://tomcat1.de/
> (without the /tomcat1 Prefix)

How do you expect to have multiple webapps opened by a single URL (that's what 
the above statement says)?  What are you really trying to achieve?  Do you want 
multiple hosts, each with a default webapp, or do you want multiple webapps for 
a single host?
 
 - 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 unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org

Reply via email to