I'm running Tomcat 5.5.7 and Apache 2.0.53. I have 3 domain names configured using virtual hosts inside Apache, they all point to the same static IP address. I'm trying to configure Tomcat to have 3 virtual hosts which correspond to these domain names, however, no matter what domain name I look at it will have access to each of the other hosts contexts. I'm trying to fix this so that I can deploy apps specific to these hosts but cannot figure out how to properly do this. I've been reading over the documentation but haven't figured out the proper way to make each host only visible to itself and not any of the other virtual hosts.
posted 14 years ago
Okay, I'm stupid. I had the <Host> configured wrong inside my server.xml file. It's working fine now. I wasn't fully understanding how the hosts were working.