aspose file tools*
The moose likes Tomcat and the fly likes Configuring Virtual Hosts Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Spring in Action this week in the Spring forum!
JavaRanch » Java Forums » Products » Tomcat
Bookmark "Configuring Virtual Hosts" Watch "Configuring Virtual Hosts" New topic
Author

Configuring Virtual Hosts

Frank Hale
Ranch Hand

Joined: Mar 25, 2000
Posts: 230
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.
Frank Hale
Ranch Hand

Joined: Mar 25, 2000
Posts: 230
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.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Configuring Virtual Hosts