Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6834421
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 26, 20262026-05-26T23:06:35+00:00 2026-05-26T23:06:35+00:00

I have about 6 or 7 webapps which are configured to be deployed as

  • 0

I have about 6 or 7 webapps which are configured to be deployed as the root app on Tomcat (6). So, each app can be later accessed by http://host:8080/

I have to deploy these webapps in one computer for a QA environment. The team commented about using one instance of Tomcat, and deploy each webapp on a different port, so they would still be deployed as the root application.

Any suggestions as to how to do this and what the best approach is?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-26T23:06:36+00:00Added an answer on May 26, 2026 at 11:06 pm

    You need to look into virtual hosts.

    A regular host lookup of the root context is something like http://www.mymachine.com:8080/, when you want to put two applications at that same context, Tomcat can’t do it because it doesn’t know which application should respond to such a lookup. Normally Tomcat resolves these conflicts by promoting the placement of different apps in an “application” path, like so

    http://www.mymachine.com:8080/app1 (maps to) "Application 1"
    http://www.mymachine.com:8080/app2 (maps to) "Application 2"
    

    However with virtual hosts, one configures a single web server to respond to multiple host name lookups. With such a configuration, the hostname can then be used as the differentiator.

    http://app1.mymachine.com:8080/(root) (maps to) "Application 1"
    http://app2.mymachine.com:8080/(root) (maps to) "Application 2"
    

    Note that such a configuration requires that you do the extra work of making sure that DNS knows both hostnames and maps them both back to the same Tomcat server. Then Tomcat (or Apache if running an Apache server in front of your Tomcat server) must be configured to map the request by it’s hostname and application path to a webapp instead of just mapping by the application path to a webapp.

    Here is the documentation on how to do this in Tomcat 6.0. Note that this doesn’t apply to the necessary networking work you’ll need to do to get both hostnames to resolve to the same machine. Good luck!

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have about 50 images of 50 x 50 pixel size each. I want
I have about 100 Word documents which include transliteration of foreign names. The author
I have a Tomcat Java webapp which is thrashing the Java GC when under
I have a Tomcat instance which is exhibiting the following behaviour: Accept a single
We're going to be building some J2ME apps and Java/Rails webapps which will have
I have following scenario: alt text http://static.zooomr.com/images/7579022_e64808b855_o.png We have a WebService which poses as
I have a Java class which can be called from shell. (via java [command][options])
We have a site which integrates Java web apps under Tomcat with ASP pages,
I have a question about the architecture of a backbone.js web app. Let's say
I'm building a tiny webapplication in which our customers can update some details about

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.