• 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
  • Liutauras Vilda
  • Tim Cooke
  • Jeanne Boyarsky
  • Paul Clapham
Sheriffs:
  • Devaka Cooray
  • Ron McLeod
  • paul wheaton
Saloon Keepers:
  • Tim Moores
  • Piet Souris
  • Tim Holloway
  • Stephan van Hulst
  • Carey Brown
Bartenders:
  • Al Hobbs
  • Frits Walraven
  • Scott Selikoff

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.
 
Hey, sticks and stones baby. And maybe a wee mention of my stuff:
the value of filler advertising in 2021
https://coderanch.com/t/730886/filler-advertising
reply
    Bookmark Topic Watch Topic
  • New Topic