Results 1 to 4 of 4
  1. #1
    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/.

  2. #2
    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.

  3. #3
    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.

  4. #4
    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]

    ????

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •