On Mon, Apr 23, 2001 at 01:01:04PM -0000, Kenneth Westelinck wrote:
> Hi,
> 
> 
> Adding this to server.xml should solve your problem:
> 
> <Context path="/" docBase="/usr/local/www/data"/>

Thanks. I got the idea, although it required some 'fine work':

It conflicted with the 

 <Context path="" docBase="webapps/ROOT" debug="0" reloadable="true" >
        </Context>

which was already there. Also, "/" seems to be interpreted as "".
The closing /> didn't work either. Maybe it's a shortcut for
a closing </context> and it was the duble definition for "/" resp ""
which was causing a syntax error. (I'm a neophyte what xml is concerned).

> 
> 
> hope this helps,
> 
> Kenneth Westelinck
> 
> >From: Christoph Kukulies <[EMAIL PROTECTED]>
> >Reply-To: [EMAIL PROTECTED]
> >To: [EMAIL PROTECTED]
> >Subject: Changing DocumentRoot
> >Date: Mon, 23 Apr 2001 12:49:18 +0200 (CEST)
> >
> >After having noticed that embedded jsp statements *could* work
> >with my configuration where apache was serving http requests
> >while tomcat was only doing the servlets I want to switch to tomcat
> >as the sole webserver. At least here in a small intranet environment
> >I think I could afford. Don't know if tomcat can sustain heavy
> >load in Internet environment though and if it's fast enough
> >compared to apache.
> >
> >Anyway, I figured out that I only had to change the port value of the
> >HttpConnection Handler from 8080 to 80.
> >
> >But how can I change the DocumentRoot to point to /usr/locaol/www/data
> >(where my apache server had it's root) while maintaining the
> >servlets under $TOMCAT_HOME/webapps?
> >
> >Simply creating a symbolic link in the filesystem of the server
> >wouldn't work, would it?
> >
> >
> >--
> >Chris Christoph P. U. Kukulies [EMAIL PROTECTED]
> >
> 
> _________________________________________________________________________
> Get Your Private, Free E-mail from MSN Hotmail at http://www.hotmail.com.

-- 
--Chris Christoph P. U. Kukulies [EMAIL PROTECTED]

Reply via email to