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

  • Home
  • SEARCH
  • 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 420707
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 12, 20262026-05-12T18:54:11+00:00 2026-05-12T18:54:11+00:00

new to JBoss and am configuring some applications. I know how to do this

  • 0

new to JBoss and am configuring some applications. I know how to do this in apache webserver, but not using Jboss.

I have successfully deployed 3 applications on a redhat box, JBoss 4.2.

If my server is called fruit.mycompany.com, I can access the three apps this way:

http://fruit.mycompany.com:8080/quince
http://fruit.mycompany.com:8080/pineapple
http://fruit.mycompany.com:8080/lime

Next, I created three subdomains, which are aliases of the server fruit.

http://quince.mycompany.com
http://pineapple.mycompany.com
http://lime.mycompany.com

How can I get each subdomain to point at it’s corresponding application?

I want http://quince.mycompany.com to actually open http://fruit.mycompany.com:8080/quince.

In apache, I would use the VirtualHost tag to point each subdomain to the correct Document Root. How do I do it with JBoss or Tomcat?

Can I do it with redirection ( does Tomcat have something like mod_rewrite )?

  • 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-12T18:54:13+00:00Added an answer on May 12, 2026 at 6:54 pm

    I gave up with Tomcat.

    The situation became too complicated.
    I have a web site running on port 80 already (on a separate instance of JBoss).
    I have these three applications, quince, pineapple and lime running on their own JBoss instance on port 8080.

    To solve my problem, I just wrote a javascript function on the index page of the website running on port 80.

    I check location to see which domain is being called and then redirect to the appropriate website on port 8080.

    The script looks something like this:

    var whois=location+" ";
    if (whois.indexOf("quince.mycompany.com") > -1)
    { 
        setTimeout('window.location.replace("http://quince.mycompany.com:8080/quince/");', 10);     
        exit;
    }
    if (whois.indexOf("lime.mycompany.com") > -1)
    { 
        setTimeout('window.location.replace("http://lime.mycompany.com:8080/lime/");', 10);     
        exit;
    }
    ...
    // otherwise redirect to the app running on port 80
    setTimeout('window.location.replace("http://fruit.mycompany.com/otherapp/");', 10);  
    

    It’s not exactly what I wanted, but at least my users now have a shortcut URL, and they don’t have to remember port numbers:
    http://lime.mycompany.com redirects to -> http://lime.langara.bc.ca:8080/lime

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

Sidebar

Related Questions

I m new to Jboss, but I have multiple web applications each using spring-hibernate
I've been using Tomcat for years, but I have been put on a new
Currently I am using this for JBoss, but I need something also for an
It appears that we will have to build/deploy one of our new JBoss apps
I'm new to JBoss Seam. I'd like to know how do I instantiate a
I am new to JPA and JBoss, so sorry in advance if this is
I am new to JBOSS AS7, and am strictly using MAVEN 3 via command
I am new to jboss and would like to know what are the differences
i have deployed my application on jboss 3.I have restored a database back up
I am new to jboss and i have been asked to incorporate jboss connection

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.