This week's book giveaway is in the OCPJP forum.
We're giving away four copies of OCA/OCP Java SE 7 Programmer I & II Study Guide and have Kathy Sierra & Bert Bates on-line!
See this thread for details.
The moose likes Tomcat and the fly likes setting server port to 80 Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of OCA/OCP Java SE 7 Programmer I & II Study Guide this week in the OCPJP forum!
JavaRanch » Java Forums » Products » Tomcat
Bookmark "setting server port to 80" Watch "setting server port to 80" New topic
Author

setting server port to 80

Jonathan Cunningham
Greenhorn

Joined: Dec 09, 2004
Posts: 4
hi folks,
ok I'm new to tomcat I have few questions. n
1) when setting server port to 80 for my tomcat appserver, does this effectively make the default http connector to listen on port 80 for request? or are they two different things?
2.If I wish to configure the Connector that is used for connections to web servers using the AJP protocol to make use of the native apache http server, this will be considerably slower than the default http server that tomcat uses? is that right? Does tomcat actually have an embedded http server??
3. comparing 1)setting server port to 80 and 2) use apache http server as a frontend to serve static files, which approach is better? I guess the first? When would I ever want to adopt the second approach?
thanks
Roel De Nijs
Bartender

Joined: Jul 19, 2004
Posts: 5445
    
  13

Originally posted by Jonathan Spitzeraler:
hi folks,
3. comparing 1)setting server port to 80 and 2) use apache http server as a frontend to serve static files, which approach is better? I guess the first? When would I ever want to adopt the second approach?
thanks


I think second approach is the better one, because apache http server is made to process static html files, and you use tomcat server to serve dynamic files and so you use both for their strenghts


SCJA, SCJP (1.4 | 5.0 | 6.0), SCJD
http://www.javaroe.be/
 
 
subject: setting server port to 80