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]



Reply via email to