Knowledgebase

Deploy .war on Tomcat server

Posted by stormridermay, 05-19-2007, 09:52 AM
Hello, I have installed Tomcat on a VPS trough a Cpanel addon module and i got my first client today. He wants do deploy his .war file. How can i do this? If i deploy on /usr/local/jakarta/jakarta-tomcat-5.5.9/webapps he will have to access using http://server_name:8080/war_name/. How can i deploy and let him access using http://his_own_domain:8080/.

Posted by vselvara, 05-21-2007, 06:53 PM
You can use mod_jk2 which connects Apache httpd to Tomcat. Then your customer can access the JSPs & Servlets by http://his_own_domain. Static files can be served by Apache httpd and JSP & Servlets can be served by Tomcat.

Posted by stdunbar, 05-22-2007, 10:50 AM
You'll need to set up a virtual host in Tomcat. Basically the virtual host is pointed to the directory in which the web app lives. By default the "root" webapp should either be named ROOT or you can setup a Context to point to the base webapp. As vselvara points out you can also use the connector which for Apache is called mod_jk. There is also a connector available for IIS. The advantage of the connector is that Apache can continue to run but for this single customers VirtualHost you will forward all traffic to the Tomcat virtual Host. Having said all that I don't know how to do this via a control panel. I've only ever done it by hand.

Posted by jjsanchez, 03-02-2012, 10:12 PM
I like do deploy into folder: web.com/only_here_put_wars/ What I need config to run ONLY files into [only_here_put_wars] ????



Was this answer helpful?

Add to Favourites Add to Favourites

Print this Article Print this Article

Also Read
hypervm password error (Views: 618)
Everyoneswebhost (Views: 654)
SQL Query help (Views: 598)


Language:

Client Login

Email

Password

Remember Me

Search