Win a copy of The Way of the Web Tester: A Beginner's Guide to Automating Tests this week in the Testing forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Apache Web Server with Tomcat 7 - Mapping VirtualHost to Context (mod_jk)

Brian Ata
Posts: 27
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi guys,

I have been reading for a time now and still couldn't figure out how to map a VirtualHosts defined in Apache Web Server to point to different Tomcat Contexts.

I am using Apache 2.2x and what I did so far is:

To httpd.conf file, I added :

And in the httpd-vhosts.conf file :

And I have the workers file :

Assuming that Tomcat has Context "DomainA" for, and "DomainB" for, I can reach these sites by simply typing and
What I want is to access these sites without attaching Context names,"DomainA" or "DomainB" to actual domain names. More clearly I want to access these sites just by using the domain names.

Would please somebody direct me to the correct path ..


  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic