• 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
  • Devaka Cooray
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Jeanne Boyarsky
  • Tim Cooke
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Tim Moores
  • Mikalai Zaikin
  • Carey Brown
Bartenders:

How to map a Tomcat context to Apache

 
Ranch Hand
Posts: 30
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi,

I set up an Apache2 - Tomcat 5.5 - mod_jk Connection and it works fine.

But now I want to map a Tomcat context to the domain root directory, but I don't know how to do it.

Now it looks like this:
http://www.mydomain.com/context/index.html
(Tomcat: http://localhost:8080/context/index.html)

It should look like this:
http://www.mydomain.com/index.html
(Tomcat: http://localhost:8080/context/index.html)

Does anyone of you know where I have to look to get the right configuration?
I am searching since a few days, but can't find the solution

Thanks for any help.
Greetings, hal
 
Ranch Hand
Posts: 189
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I havent worked with this kind of thing for awhile, but I think you can set "virtual servers" or you can declare multiple mappings in your server.xml and have one of them accept input from a certain domain name.
 
I'm not dead! I feel happy! I'd like to go for a walk! I'll even read a tiny ad:
a bit of art, as a gift, the permaculture playing cards
https://gardener-gift.com
reply
    Bookmark Topic Watch Topic
  • New Topic