> From: Tent Pig [mailto:[EMAIL PROTECTED] > Subject: RE: Configuring TOMCAT to use different ROOT context > > I put in tomcat's server.xml: > > <host name="localhost" appbase="/path/to/documentroot" > />
I hope you're more careful with proper casing than the above would lead us to believe. If the above is really what you put in, it would have no effect, since both the element and attributes are incorrect. > This sort of "works", in the sense that now tomcat > looks in > > /path/to/documentroot/ROOT/ > > for JSP files Tomcat will only look in ROOT if the request URI doesn't map to any deployed applications. > of course, for my user, this is 'unacceptable', since > she has > > /path/to/documentroot/section1/ > /path/to/documentroot/section2/ > /path/to/documentroot/section3/ Does sectionx correspond to a virtual host or an application? If virtual host, then you need to create multiple <Host> elements in server.xml, one for each section, with the appBase pointing to the section. The name attribute of each <Host> must correspond to the virtual host specified on the request URI. If application, then the URI received by Tomcat doesn't match; enable the RequestDumperValve to see what's really coming in. > (Again, I'm completely clueless here) when I googled > information online, several references were made to > adding a <context> tag within the <host> > declaration... You seem to have encountered badly outdated and erroneous information. Do not put <Context> elements in server.xml; read the Tomcat doc first: http://tomcat.apache.org/tomcat-5.5-doc/config/host.html http://tomcat.apache.org/tomcat-5.5-doc/config/context.html Then Google, making sure to ignore information that conflicts with the real doc. - Chuck THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY MATERIAL and is thus for use only by the intended recipient. If you received this in error, please contact the sender and delete the e-mail and its attachments from all computers. --------------------------------------------------------------------- To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]