aspose file tools*
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 Java 8 in Action this week in the Java 8 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: 4926
    
  10

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/
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: setting server port to 80
 
Similar Threads
Configuring http://localhost in Tomcat/Eclipse
SSL certificates for each one of the Tomcat Instances on single machine
how to map www.test.com to http://localhost:8080/test/index.jsp on Tomcat server
Can't access Tomcat 7 from network
How to change application url by meaningfull name?