Hi,

On 12/09/14 04:22, Kiran Badi wrote:
This will be basically myapp2.war ,so how do I manage this deployment so
that whenever someones gives www.myapp2.com, it should open up ?

I assume we cannot have 2 root deployment in the same tomcat.

Usually you can delegate the VirtualHost resolution to a regular HTTP server, such as apache2 or nginx, proxing using AJP or any of the available connectors.

BTW, relevant for the question what started this thread, remember that Tomcat Manager comes with a basic set of REST web services that you may find useful. Without messing with manually removing directories, you can just PUT your war to the root context as follows:

http://localhost:8080/manager/text/deploy?path=%2F&update=true

Further details at the documentation:

http://tomcat.apache.org/tomcat-7.0-doc/manager-howto.html#Supported_Manager_Commands

Hope that helps.

Cheers,

--
Sergio Fernández
Partner Technology Manager
Redlink GmbH
m: +43 660 2747 925
e: sergio.fernan...@redlink.co
w: http://redlink.co

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org

Reply via email to