Hi, >My question is this: Can I force all traffic coming through port 80 to >web-app1, 8443 to web-app2 etc...???
Yes. >I believe the answer may lie with using a customised valve, but have found >no examples of this. There are a number of ways you can do this, a custom valve being one of the worst. Here are some alternatives: One option: Rearrange server.xml into three Services, each one with one Engine, Host, Connector, and Context. Service1 would have the port 80 connector (only) and the web-app1 context (only). No coding needed. Another option: have a simple filter a-la the balancer app included with Tomcat, which redirects requests to the right webapp as needed. The filter would be declared for url-pattern /* in each of your three webapps. A little bit of coding here, not much. A similar alternative: put something (could be Apache, could be another Tomcat, whatever) in front of this 3-app Tomcat with just balancer, or just the above mentioned filter, to route your requests. Also with the Apache route: put http in front of Tomcat and do some URL-rewriting. I'll stop here, even though there are other ways, all still better than a custom valve. Yoav Shapira http://www.yoavshapira.com This e-mail, including any attachments, is a confidential business communication, and may contain information that is confidential, proprietary and/or privileged. This e-mail is intended only for the individual(s) to whom it is addressed, and may not be saved, copied, printed, disclosed or used by anyone else. If you are not the(an) intended recipient, please immediately delete this e-mail from your computer system and notify the sender. Thank you. --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]