Win a copy of The Java Performance Companion this week in the Performance forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Tomcat 5.5 and Port 8080

 
Rick Fischer
Greenhorn
Posts: 19
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
What is the best way to eliminate the need to specify port 8080 in the URL with Tomcat5.5. I have used the jspisapi product, but I am looking for a better solution.
 
somkiat puisungnoen
Ranch Hand
Posts: 1312
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
you can config port in server.xml file.
 
Matthew Amacker
Greenhorn
Posts: 5
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
You can also use mod_rewrite in apache. I've seen it used to map urls to various ports and services. In addition I believe Apache is coming out with, or has come out with the ability to do load balancing.

Its getting more versatile as a front end to web-services.


Apache mod_rewrite
 
Rahul Singh Khokhar
Ranch Hand
Posts: 36
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Rick,
Depends, if you are using only Tomcat to serve all types of pages(static and JSPs) then u need to modify the server.xml

On the other hand, if you are have Apache to serve the static pages and Tomcat to serve the JSPs (Preferred setup) then use either of these :
Mod_jk, Mod_jk2, or Mod_proxy and configure them. Once configured you need not point to port 8080 in your URLs.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic