tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Mark Senefsky <msenef...@yahoo.com>
Subject Re: Newbie Contexts
Date Mon, 11 Jun 2001 04:43:47 GMT
Thanks Nitin...

I think this is what you told me to add to server.xml:
        <Context path="http://www.mydomain.com/"
                 docBase="/usr/local/www/htdocs/"
                 crossContext="false"
                 debug="0"
                 reloadable="true" >
        </Context>
I restarted tomcat and I get the same 404 error when I try to load the jsp.

Thanks,
Mark

> From: Nitin Borwankar <nitin@borwankar.com>
> Reply-To: tomcat-user@jakarta.apache.org
> Date: Sun, 10 Jun 2001 18:22:17 -0700
> To: tomcat-user@jakarta.apache.org
> Subject: Re: Newbie Contexts
> 
> 
> 
> Mark Senefsky wrote:
>> 
>> Can I establish a context that points to a directory outside the tomcat
>> directory?
> 
> Yes this is definitely possible.
> Edit the server.xml file in the TOMCAT_HOME/conf directory.
> Add a new "context" entry using the existing ones as guidelines.
> "path" and "docBase" are the only one's you'll need to change.
> 
> For the "path" give a URL prefix for your jsp, for docBase give an
> absolute path pointing
> to your directory.  The URL address will still be <host>/<context
> path>/some.jsp but your jsp's will come from your new location as in
> docBase.. 
> 
> Nitin Borwankar.
> 
>> 
>> Thanks,
>> Mark
>> 
>>> From: Krishna Kant T <krishnakant@compulsesys.com>
>>> Organization: ComPulse Systems
>>> Reply-To: tomcat-user@jakarta.apache.org
>>> Date: Mon, 10 Jun 2002 17:43:17 +0530
>>> To: tomcat-user@jakarta.apache.org
>>> Subject: Re: Newbie Contexts
>>> 
>>> hi there,
>>> 
>>> u can set up new contexts by adding new directories within webapps.
>>> each dir could be a context/app and could have dirs for jsp , images ,
>>> web-inf,
>>> etc.
>>> 
>>> ~krishnakant
>>> 
>>> Mark Senefsky wrote:
>>> 
>>>> Greetings all...
>>>> 
>>>> OK I think the solution to my previous email "Newbie Help (the sequel)" is
>>>> related to contexts. Currently the only context for my server points to the
>>>> examples directory.
>>>> 
>>>> How do I establish new Contexts?
>>>> 
>>>> Using Tomcat admin what goes in each of these inputs?
>>>> 
>>>> Path: (assume directory path?)
>>>> Document Base: (no clue.)
>>>> Context Name: (whatever I choose?)
>>>> 
>>>> Thanks,
>>>> Mark
>>>> 
>>>> _________________________________________________________
>>>> Do You Yahoo!?
>>>> Get your free @yahoo.com address at http://mail.yahoo.com
>> 
>> _________________________________________________________
>> Do You Yahoo!?
>> Get your free @yahoo.com address at http://mail.yahoo.com


_________________________________________________________
Do You Yahoo!?
Get your free @yahoo.com address at http://mail.yahoo.com


Mime
View raw message