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 5977509
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 22, 20262026-05-22T21:22:51+00:00 2026-05-22T21:22:51+00:00

I have two applications running on Jboss 6 with different context on same port

  • 0

I have two applications running on Jboss 6 with different context on same port (8180). I have Apache running on the machine port 80. I need to direct the request to appropriate context based on the application being accessed.

I have a dns entry – testServ14, which points to the server IP.

To be more clear, the applications should be accessible via urls something like

http://testServ14/appAcontext/

http://testServ14/appBcontext/

In httpd-vhosts file what should i be using virtualhost or namevirtualhost directives?

How can I achieve this..

Tried the following but did not work…

<VirtualHost *:80>
ServerName http://testServ14/appA
ProxyRequests Off
ProxyVia On
ProxyPass / http://localhost:8180/appA
ProxyPassReverse / http://localhost:8180/appA
ErrorLog logs/error_log
CustomLog logs/access_log common
</VirtualHost>


<VirtualHost *:80>
ServerName http://testServ14/appB
ProxyRequests Off
ProxyVia On
ProxyPass / http://localhost:8180/appB
ProxyPassReverse / http://localhost:8180/appB
ErrorLog logs/error_log
CustomLog logs/access_log common
</VirtualHost>

Thanks

  • 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-22T21:22:52+00:00Added an answer on May 22, 2026 at 9:22 pm
    -- updated
    

    The following works nicely…you can add other apps with a different context,running on the same port.

    <VirtualHost *:80>
    ServerName http://us14testServ/
    ServerAlias us14testServ
    ProxyRequests Off
    ProxyVia On
    
    #app1
    ProxyPass /app1/ http://localhost:8180/app1/
    ProxyPassReverse /app1/ http://localhost:8180/app1/
    
    #app2
    ProxyPass /app2/ http://localhost:8180/app2/
    ProxyPassReverse /app2/ http://localhost:8180/app2/
    
    ErrorLog logs/error_log
    CustomLog logs/access_log common
    </VirtualHost>
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have two different C# applications that are running at the same time. I
I have two applications running in the same java virtual machine, and both use
I have two web applications running in the same Tomcat Instance. In one of
i have two .net web application and they ara running on different domain same
I have two web applications running in same Servlet container ( Tomcat ), A
Assume you have two web applications running in two different tabs/windows in your browser.
Let's say that I have two .Net applications running on a single machine. Both
I have two applications running on diffrent servers with diffrent DB's. I need to
We have two applications running on single machine,one of which is web application that
I have written two different applications running as windows services. Each application represents one

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.