| Links User Guide Reference Apache Tomcat Development | Apache Tomcat 6.0Virtual Hosting and Tomcat| Assumptions |  | 
    
      For the sake of this how-to, assume you have a development host with two
      host names, renandstimpy. Let's also assume
      one instance of Tomcat running, so$CATALINA_HOMErefers to
      wherever it's installed, perhaps/usr/local/tomcat. 
      Also, this how-to uses Unix-style path separators and commands; if you're
      on Windows modify accordingly. 
     | 
 | Configuring Your Contexts |  | 
    | General |  | 
      Contexts are normally located underneath the appBase directory. For
       example, to deploy the foobarcontext as a war file in
       therenhost, use$CATALINA_HOME/renapps/foobar.war. Note that the
       default or ROOT context forrenwould be deployed as$CATALINA_HOME/renapps/ROOT.war(WAR) or$CATALINA_HOME/renapps/ROOT(directory). NOTE: The docBasefor a context should never be
        the same as theappBasefor a host. | 
 | context.xml - approach #1 |  | 
      
        Within your Context, create a META-INFdirectory and then
        place your Context definition in it in a file namedcontext.xml. i.e.$CATALINA_HOME/renapps/ROOT/META-INF/context.xmlThis makes deployment easier, particularly if you're distributing a WAR
        file. | 
 | 
 |