This week's book giveaway is in the OO, Patterns, UML and Refactoring forum. We're giving away four copies of Refactoring for Software Design Smells: Managing Technical Debt and have Girish Suryanarayana, Ganesh Samarthyam & Tushar Sharma on-line! See this thread for details.
I am pretty sure it's a rather common question, but briefly looking through the archives, I didn't find any good answer for it. For example, the company has developed a web application, deployed a WAR file to Tomcat container and would like to run it in production use. It goes without saying, that using 8080 port isn't the best way to do this. Besides, the company has got other projects. So it's raising the question for virtual hosts. I know there are a lot of Tomcat advocates, which proposes to do everything in it, but still there are other ways out, like Apache HTTP server in the frontend with either proxy or mod_jk or depreceated mod_jk2; a simple 80 -> 8080 firewall redirect (which actually doesn't solve the question with numerous projects); like Tomcat all-in-one, with running on 80 port (unsafe) and own virtual hosts.
So, the question is, what's the best way out for production use, in mind of future scalability and managebility?