You are viewing a plain text version of this content. The canonical link for it is here.
Posted to general@jakarta.apache.org by Bill Winspur <bw...@wynnon.com> on 2000/03/13 17:31:13 UTC

Establishing Contexts

I have Tomcat 3.1 installed on Redhat 6.0 and talking to Apache, but
Apache/Tomcat does not see the /webpages default context, although it sees
the /examples context, i.e.
URL http://192.168.1.1/examples/jsp/ ... works (page appears OK),
URL http://192.168.1.1/webpages/ ... does not work (404)

Stripped of comments, my tomcat.conf inclusion contains the following:

LoadModule jserv_module libexec/mod_jserv.so
<IfModule mod_jserv.c>
ApJServManual on
ApJServDefaultProtocol ajpv12
ApJServSecretKey DISABLED
ApJServMountCopy on
ApJServLogLevel notice
ApJServDefaultPort 8007
ApJServMount default /root
AddType test/jsp .jsp
AddHandler jserv-servlet .jsp
ApJServMount /examples /root
ApJservMount /webpages /root
</IfModule>

Apache's DocumentRoot points to a static document tree, which works.

Question: how do I make the /webpages context visible in apache ?

Question: Has tomcat moved beyond the concent of jserve's zones ? The 3.1
documentation that I've found in the 3.1 cvs source, and the Sun 2.2 spec
make no mentionof jserve's zones. However, the ApJservMount directive still
seems to require what used to be called a zone.

Question: What role is the Apache document root setting expected to play,
given the tomcat contexts implementation ?
Thanks in advance for any help,

Bill.


Re: Establishing Contexts

Posted by Fergus Gallagher <Fe...@OrbisUK.com>.
I found that by doins as you have done, and putting (or symlinking) your
web-app in <tomcat>/webapps, tomcat will autoconfigure itself.  I
couldn't get it working for an arbitary location - but I didn't try too
hard as the former works so well.

Fergus

Bill Winspur wrote:
> 
> I have Tomcat 3.1 installed on Redhat 6.0 and talking to Apache, but
> Apache/Tomcat does not see the /webpages default context, although it sees
> the /examples context, i.e.
> URL http://192.168.1.1/examples/jsp/ ... works (page appears OK),
> URL http://192.168.1.1/webpages/ ... does not work (404)
> 
> Stripped of comments, my tomcat.conf inclusion contains the following:
> 
> LoadModule jserv_module libexec/mod_jserv.so
> <IfModule mod_jserv.c>
> ApJServManual on
> ApJServDefaultProtocol ajpv12
> ApJServSecretKey DISABLED
> ApJServMountCopy on
> ApJServLogLevel notice
> ApJServDefaultPort 8007
> ApJServMount default /root
> AddType test/jsp .jsp
> AddHandler jserv-servlet .jsp
> ApJServMount /examples /root
> ApJservMount /webpages /root
> </IfModule>
> 
> Apache's DocumentRoot points to a static document tree, which works.
> 
> Question: how do I make the /webpages context visible in apache ?
> 
> Question: Has tomcat moved beyond the concent of jserve's zones ? The 3.1
> documentation that I've found in the 3.1 cvs source, and the Sun 2.2 spec
> make no mentionof jserve's zones. However, the ApJservMount directive still
> seems to require what used to be called a zone.
> 
> Question: What role is the Apache document root setting expected to play,
> given the tomcat contexts implementation ?
> Thanks in advance for any help,
> 
> Bill.
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: general-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: general-help@jakarta.apache.org

-- 
Fergus Gallagher          Tel: +44 (20) 8 987 0717
Orbis                     Fax: +44 (20) 8 742 2649
The Swan Centre           email: Fergus.Gallagher@orbisuk.com
Fishers Lane              Web: http://www.orbisuk.com
London W4 1RX / UK