Thanks for your answer. I'll show you my server.xml conf:
...
<Host name="domain1.com" debug="9" appbase="WWW/domain1.com" unpackWARS="true"
autoDeploy="true"
xmlValidation="false"
xmlNamespaceAware="false"
>
<Context path="" docBase="WWW/domain1.com" debug="9" reloadable="true"/>
<Context path="/manager" docBase="WWW/domain1.com/manager" privileged="true" debug="2"/>
<Logger className="org.apache.catalina.logger.FileLogger" directory="logs" prefix="domain1.com_log."
suffix=".txt" timestamp="true"/>
</Host>
<Host name="domain2.com" debug="2" appbase="WWW/domain2.com" unpackWARs="true" autoDeploy="true" xmlValidation="false" xmlNamespaceAware="false">
<Context path="" docBase="WWW/domain2.com" debug="0" reloadable="true"/>
<Context path="/manager" docBase="WWW/domain2.com/manager" debug="0" privileged="true"/>
<Logger className="org.apache.catalina.logger.FileLogger" directory="logs" prefix="domain2.com_log." suffix=".txt" timestamp="true"/>
</Host>
...
my tomcat is installed in the dir /usr/local/jakarta_5. When I deploy a war using the manager web app : http://domain1.com/manager the war is copied in the dir /usr/local/jakarta_5 instead WWW/domain1.com, and therefore is deployed in the domain2.com too.
Atentamente:
Ing. Carlos Gabriel Arce Administrador del Hosting TELESAT S.A Cisco CCNA 10677416 Pbx. 57-2 - 644 0400 Fax. 57-2 - 644 0507 Cali, Colombia http://www.telesat.com.co
------------------------------------
Quien no ha afrontado la adversidad no conoce su propia fuerza. Benjamin Jonson.
------------------------------------
La informaci�n adjunta en este mensaje es de uso exclusivo de la/s persona(s) o entidad/es a la que est� dirigida y puede incluir informaci�n confidencial, personal y/o material protegido legalmente. La recepci�n de este mensaje por cualquier otra persona distinta de los destinatarios a los que est� dirigido, no implica renuncia alguna al privilegio o derecho de confidencialidad. Se proh�be el an�lisis, la retransmisi�n, divulgaci�n o cualquier otro uso, o acci�n relacionada con esta informaci�n que fuera llevada a cabo por personas distintas del destinatario al cual la informaci�n est� dirigida. Si recibe esta informaci�n por error, comun�quese con el remitente y proceda a borrarla de inmediato de todos los equipos de c�mputo donde pueda quedar almacenada. Telesat entiende que el destinatario de este mensaje ha tomado todas las medidas t�cnicamente recomendables y apropiadas para evitar la contaminaci�n por virus. Telesat S.A. no se hace responsable por la eventual transmisi�n de virus o programas da�inos por este medio, ni acepta responsabilidad alguna por eventuales da�os o alteraciones derivados de la recepci�n o uso del presente mensaje. Las opiniones, conclusiones y otra informaci�n contenida en este correo no relacionadas con el negocio oficial de Telesat S.A. deben entenderse como personales y de ninguna manera son avaladas por la Compa��a. Agradecemos su atenci�n.
Mario Winterer escribi�:
Hi!
I think, there's something wrong with your context-definition or server.xml. Make sure each of your hosts have a webapplication base directory for their own!!! Do not use one single webapps-directory for all of your hosts!
My directory structure looks as follows: <somewhere>/Tomcat/hosts/<host>/<web-application>
Inside server.xml, where the hosts are defined, each host's appBase-attribute points to the correspoding host-directory.
Apart from that: If your tomcat's auto-deploy feature is activated, you can deploy a web-application by simply copying the war file into your webapps-directory (or any other directory that you specified in server.xml).
Best regards, Tex
Carlos Gabriel Arce wrote:
But when I deploy a local .war in the administration page www.domain1.com/manager/html
this war gets replicated in other virtualhosts.
Mario Winterer escribi�:
Of course!
That's Tomcat's default behaviour - and in fact, it is difficult to make it behave different!
Have a look at server.xml of your tomcat's default installation (you need a host-element for each virtual host). More information can be found at http://jakarta.apache.org/tomcat/tomcat-5.5-doc/config/index.html.
Best regards, Tex
Carlos Gabriel Arce schrieb:
Good Day
I have a question. Is possible deploy an application per virtualhost, where the deployed applications per virtualhost could'nt see them each other?
Thanks in advance.
--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
