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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 10, 20262026-06-10T06:50:16+00:00 2026-06-10T06:50:16+00:00

I have three tomcat instances for three different applications. They are using 8080,8081,8082 ports

  • 0

I have three tomcat instances for three different applications. They are using 8080,8081,8082 ports in one machine. How can I change configurations so that users are able to access from 80 port with different host names? I have installed an Apache on my machine and tried to configure it with following tutorial: How to load balance Tomcat 5.5 with Apache on Windows until load balancing point starts. I have questions based on this tutorial. My web applications is under webapps/ROOT in all tomcat instances.
I have this configuration in httpd.conf:

<IfModule jk_module>
    JkWorkersFile  D:\containters\_tomcat_backend\conf\workers.properties
    JkShmFile      D:\containters\_tomcat_backend\logs\mod_jk.shm
    JkLogFile      D:\containters\_tomcat_backend\logs\mod_jk.log
    JkLogLevel debug
    JkMount / worker1
    JkMount / worker2
</IfModule>

And I’m getting this warining when I run httpd.exe from command prompt:

[warn] NameVirtualHost *:80 has no VirtualHosts

Am I in correct way to make my applications work with 80 port? And how can I configure this warning?

  • 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-06-10T06:50:18+00:00Added an answer on June 10, 2026 at 6:50 am

    For your scenario, you will not need load balancing. In your httpd.conf, you should define 3 virtual hosts for the host names you want to use (as described here). In each of the VirtualHost directives, insert a
    JkMount for a worker to be defined in your workers.properties like:

    JkMount /* worker1
    ...
    
    # same for worker2 and worker3 in the other virt. hosts
    

    Now comes the workers.properties:

    ...
    worker.list = worker1, worker2, worker3
    
    worker.worker1.port=8009
    worker.worker1.host=localhost
    worker.worker1.type=ajp13
    
    worker.worker2.port=8010
    worker.worker2.host=localhost
    worker.worker3.type=ajp13
    
    worker.worker3.port=8011
    worker.worker3.host=localhost
    worker.worker3.type=ajp13
    

    N.B.: I use different ports than the ones you specified, because communication between Apache and Tomcat is runs via AJP. Finally, add a matching AJP connector in each of your tomcat’s server.xml:

    <Connector port="8009" protocol="AJP/1.3" />
    

    See this for more details. The warning you mentioned seems to be caused by an incomplete virtual host configuration. Are there no VirtualHost instances defined yet?

    Edit: If you don’t like that much configuration, you could also use your Apache as a proxy and distribute traffic to your tomcats via the ProxyPass/ProxyPassReverse directives.

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

Sidebar

Related Questions

In IntelliJ, I would like to have different configurations to start several Tomcat instances,
I have two web applications running in the same Tomcat Instance. In one of
I have three Windows Server 2003 with 2 GB RAM. Server1 tomcat 5.5.25 jvm
I have three files: lib.c lib.h => They should be built as a .so
I have three tables. I have to retrieve the data using Linq statement. My
We have a simple Webapp running on two Tomcat instances behind Apache (a Tomcat
Similar question to, Does it make sense to have multiple tomcat instances on the
I have a server with multiple Tomcat instances and each contains about 10 application
I have numerous Spring Framework-based applications that run on a Tomcat 5.5 server. Some
Have three classes User, Group and Field. Many to many relationship on User /

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.