AW: Multiple Context and Websites

2009-05-08 Thread Alexander Diedler

-Ursprüngliche Nachricht-
Von: Caldarale, Charles R [mailto:chuck.caldar...@unisys.com] 
Gesendet: Donnerstag, 7. Mai 2009 15:54
An: Tomcat Users List
Betreff: RE: Multiple Context and Websites

 From: Alexander Diedler [mailto:adied...@tecracer.de]
 Subject: AW: Multiple Context and Websites
 
 AD : But we want to use different Hostnames, it cannot be placed in the
 localhost?

Just using different host names is a DNS issue; it does not require multiple
Host elements in Tomcat.  You only need multiple Hosts if you want
separate sets of webapps for each domain.

 AD: Some Websites (Applications) should be hosted on this Tomcat e.g.
 applicationA.domain.de, applicationB.domain.de and every Website has it
 own directory on HDD. But it is not inside the Tomcat Folders.

You still seem to be confusing webapps with domains.  You can have multiple
webapps for one domain, a single default webapp for each domain, or multiple
webapps for each domain; all combinations are possible.  What do you want?

Can you provide a set of example URLs and the webapps you expect those URLs
to reference?  If you want a single default webapp for each domain, you'll
need one Host element for each, with a separate appBase setting for each.
Inside each appBase directory should be a ROOT subdirectory (or ROOT.war
file) containing the webapp for that domain.  The Context element for each
should be in ROOT/META-INF/context.xml.

You will also need to deploy a separate copy of the manager app for each
Host.

Yes, that it is what we want, to have one domain for one webapps. But also
we want to have the possibility to start every webapp himself with the
Tomcat Manager without to restart the other contexts (webapps). It is now
more clearly?

You definitely should read the link Hassan provided.

 - 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



smime.p7s
Description: S/MIME cryptographic signature


AW: Multiple Context and Websites

2009-05-07 Thread Alexander Diedler


-Ursprüngliche Nachricht-
Von: Caldarale, Charles R [mailto:chuck.caldar...@unisys.com] 
Gesendet: Donnerstag, 7. Mai 2009 15:20
An: Tomcat Users List
Betreff: RE: Multiple Context and Websites

 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.
AD : Done

 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.
AD : Done


 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).
AD : But we want to use different Hostnames, it cannot be placed in the 
localhost?

 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?
 
AD: Some Websites (Applications) should be hosted on this Tomcat e.g. 
applicationA.domain.de, applicationB.domain.de and every Website has it own 
directory on HDD. But it is not inside the Tomcat Folders.

 - 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



smime.p7s
Description: S/MIME cryptographic signature