• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

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

 
Greenhorn
Posts: 27
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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 www.a.com, and "DomainB" for www.b.com, I can reach these sites by simply typing www.a.com/DomainA/ and www.b.com/DomainB/
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 ..

Thanks!

 
Don't get me started about those stupid light bulbs.
reply
    Bookmark Topic Watch Topic
  • New Topic