> From: David Smith [mailto:[EMAIL PROTECTED] > Subject: Re: Is there a way to remap/replace webapps/ROOT? > > Rename ROOT.xml in conf/Catalina/localhost to newContextName.xml. > Restart tomcat.
Not sure that's what he's asking for. > Rizalino DeVilleres wrote: > > > I see the following documentation about defining the default > > Context and where to place them but still talks about the path > > webapps/ROOT. The default application must be named ROOT (case sensitive), or must be defined in server.xml with an empty path string (this latter mechanism is strongly discouraged). > > We basically would like that path to be just public_html without > > changing the path on the web server's docroot. Not sure what you mean here. Do you want the clients to use http://<mysite>/public_html to get to your primary app, or do you want to store your default app somewhere in your local file system under the directory public_html? For the former, simply name your app public_html, either by placing it under webapps with that name (subdirectory or .war file), or by creating a public_html.xml file in conf/[engine]/[host] that has a <Context> element with its docBase attribute pointing to the location of your app. ([engine] and [host] are usually Catalina and localhost, respectively.) For the latter, create a ROOT.xml file in conf/[engine]/[host] containing a <Context> element with its docBase pointing to the /<someWhereInFileSystem>/public_html directory. Or am I completely misunderstanding the problem? - 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]