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


Win a copy of The Mikado Method this week in the Agile and other Processes forum!
JavaRanch » Java Forums » Products » Tomcat
Reply 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://ej-technologies/jprofiler - if it wasn't for jprofiler, we would need to run our stuff on 16 servers instead of 3.
 
subject: Configuring Virtual Hosts
 
Similar Threads
****ServletContext and WebApplication confusion****
How to set application context path in server.xml
Tomcat alternatives?
Help w/ Apache
How does Mod_JK connector work?