• 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 all forums
this forum made possible by our volunteer staff, including ...
  • Campbell Ritchie
  • Liutauras Vilda
  • Jeanne Boyarsky
  • Devaka Cooray
  • Paul Clapham
  • Tim Cooke
  • Knute Snortum
  • Bear Bibeault
Saloon Keepers:
  • Ron McLeod
  • Tim Moores
  • Stephan van Hulst
  • Piet Souris
  • Ganesh Patekar
  • Frits Walraven
  • Carey Brown
  • Tim Holloway

tomcat-apache context problem?

Posts: 26
  • Mark post as helpful
  • send pies
  • 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.
Posts: 20841
Android Eclipse IDE Tomcat Server Redhat Java Linux
  • Mark post as helpful
  • send pies
  • 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.
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!