posted 22 years ago
What you want is known as virtual hosting. There are 2 ways to do it.
1. Give each site its own unique IP address/port combination
2. Use the hostname-based targer determination that is only supported by HTTP 1.1 clients and higher.
I'm afraid I haven't attempted to do this in standalone Tomcat, so I'd have to RTFM. Using Apache/Tomcat, I setup a standard Apache <VirtualHost> directive block and translate to a unique Tomcat context for each site.
Experience keeps a dear School, but Fools will learn in no other.
---
Benjamin Franklin - Postal official and Weather observer