Results 1 to 4 of 4
Thread: Deploy .war on Tomcat server
-
05-19-2007, 09:52 AM #1Junior Guru Wannabe
- Join Date
- Apr 2007
- Posts
- 64
Deploy .war on Tomcat server
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/.
-
05-21-2007, 06:53 PM #2Junior Guru
- Join Date
- Dec 2001
- Location
- Northern Virginia
- Posts
- 238
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.
-
05-22-2007, 10:50 AM #3Web Hosting Master
- Join Date
- Aug 2002
- Location
- Superior, CO, USA
- Posts
- 635
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.
-
03-02-2012, 10:12 PM #4Junior Guru
- Join Date
- Apr 2007
- Posts
- 182
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]
????