• 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

tomcat-apache context problem?

 
Greenhorn
Posts: 26
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi EveryBody:
I installed tomcat on my server and the examples are working fine under http://mydomain.com/examples. I create a context called "sami" and if i try http://mydomain.com:8080/sami/serv1 everithing works fine but the problem is when i try http://mydomain.com/sami/serv1 (without 8080) no page is displayed.
So if the examples are working ok why my context is no working without 8080?
Thanks in advance.
 
Saloon Keeper
Posts: 27762
196
Android Eclipse IDE Tomcat Server Redhat Java Linux
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
When you make an HTTP request without a port number it assumes port 80, which is where Apache listens. Tomcat is listening on port 8080. To route the port 80 request to Tomcat you need one of the Apache tomcat pipeline modules, which will not only pass the request to Tomcat, but will handle translation from a URL to a Tomcat application context.
For Tomcat 3, use mod_jk (recommended) or mod_jserv
For Tomcat 4, use mod_webapp. Be careful! there are SEVERAL DIFFERENT *OBSOLETE* sets of documentation for mod_webapp! They've changed the directives several times and I'm not sure the "current" documentation has been updated yet.
 
Listen. That's my theme music. That's how I know I'm a super hero. That, and this tiny ad told me:
a bit of art, as a gift, the permaculture playing cards
https://gardener-gift.com
reply
    Bookmark Topic Watch Topic
  • New Topic