
I don't expect you've seen my picture with TCP port numbers coming out of my head very often, have you? In fact this may be the first picture of me in glasses that I've published here. That's not a vanity thing - just that it's only been over the course of this year that I've had to join the majority of people of my age and start wearing the things.
What are the port numbers all about? It's a characteristic of Tomcat that it can be set up to accept connections on a number of different ports, and in a number of different protocols, all at the same time - and this is something that we do on the
Apache Tomcat Course that we run every couple of months. Last week, I set up ...
• Port 5008 as the shutdown port
• Port 5050 as my regular http connector
• Port 5009 for ajp connections (mod_jk or mod_proxy_ajp accessors)
• Port 5052 for proxies httpd connections (mod_proxy_http)
... and that's fairly typical. Even though our clients are often interested in having their Tomcatted websites accessible via https (secure protocol), such traffic is probably going to be fronted via Apache http. After all, if an organisation is going to start using the secure https protocol between two servers sitting in the same rack, or even on the same box (usually how they are run!), they either don't fully understand what they're doing, or they are paranoid!
(written 2008-12-14)
Associated topics are indexed under
A654 - Web Application Deployment - Configuring and Controlling Tomcat [3043] Gathering information - logging - with log4j. First steps. - (2010-11-12)
[2652] Reading and writing cookies in Java Servlets and JSPs - (2010-02-26)
[2163] CATALINA_OPTS v JAVA_OPTS - What is the difference? - (2009-05-09)
[2061] Tomcat 6 - Annotated Sample Configuration Files - (2009-03-01)
[2039] The Invoker - (2009-02-13)
[1994] tomcat-users.xml; what a difference a space made - (2009-01-16)
[1762] WEB-INF (Tomcat) and .htaccess (httpd) - (2008-08-20)
[1553] Automatic startup and shutdown of Tomcat - (2008-02-24)
[1503] Web page (http) error status 405 - (2008-01-12)
[1370] Apache Tomcat Performance Tuning - (2007-09-29)
[1351] Compressing web pages sent out from server. Is it worth it? - (2007-09-14)
[914] A practical example of roles - (2006-11-04)
[907] Browser -> httpd -> Tomcat -> MySQL. Restarting. - (2006-10-28)
[837] Tomcat - Shutdown port - (2006-08-18)
241c
Some other Articles
Perl substitute - the e modifierVariable Types in PerlSummary - Apache httpd build on LinuxForwarding session and cookie requests from httpd to TomcatPort and GlassesChristmas scenes and eventsServer - Service - Engine - Host, TomcatURL rewriting with front and back serversmod_proxy_ajp and mod_proxy_balancer examplesPredictive Load Balancing - PHP and / or Java