> -----Original Message-----
> From: Christopher Schultz [mailto:ch...@christopherschultz.net]
> Sent: Thursday, January 30, 2014 1:10 PM
> To: Tomcat Users List
> Subject: Re: Manager Doesn't Recognize context = "/"
> 
> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA256
> 
> Jerry,
> 
> On 1/30/14, 2:06 PM, Jerry Malcolm wrote:
> > Hi Christopher,
> >
> > I don't use a WAR.  Everything is static (folder structure is already
> > set up in docRoot folder).  The WEB-INF folder is in the root.
> 
> You should probably switch deployment strategies. It will save you
> headaches in the long-run.
> 
> > Server.xml:
> >
> > <Host name="aaaaaa.bbbbbb.net" debug="0"
> > appBase="c:\domains\aaaaaa.bbbbbb.net" unpackWARs="true" > <Valve
> > className="org.apache.catalina.authenticator.SingleSignOn"
> > debug="0" /> <Valve
> > className="org.apache.catalina.valves.AccessLogValve"
> > directory="logs" prefix="staging_access." suffix=".log"
> > pattern="common" /> <Logger
> > className="org.apache.catalina.logger.FileLogger"
> > directory="c:\domains\aaaaaa.bbbbbb.net/logs " prefix="sa"
> > suffix=".txt" timestamp="true" />
> >
> > <Context path="/manager" privileged="true"
> > docBase="c:\Tomcat7\webapps\manager" />
> >
> > <Context path="/" docBase="" debug="0" reloadable="true"
> > crossContext="true" /> </Host>
> 
> The <Context> path is incorrect. For the root context, you want to use
> path="" not path="/".
> 
> > Server: Apache Tomcat/7.0.27
> 
> You should seriously consider upgrading to a later version (current it
> Tomcat 7.0.50).
> 
I'm not totally surprised that this config works, but back when I used static 
deployment (not WAR files), I would have done it this way:
 <Host name="aaaaaa.bbbbbb.net" debug="0" appBase="anydirectory" 
unpackWARs="false" >
  <Context path="" docBase=" c:\domains\aaaaaa.bbbbbb.net " debug="0" 
reloadable="true"
           crossContext="true" /> 
 </Host>
And, of course, I'd have put the two <Context> entries into manager.xml and 
ROOT.xml files in the conf/{Engine}/{Host} directory and left off the "path=" 
parameter completely.

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org

Reply via email to