You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tomcat.apache.org by Abhiman Srikant <ab...@EASTPOINT.COM> on 2000/11/01 16:59:27 UTC

Problem with tomcat-apache

Hi,

I am trying to set up a context on tomcat by name "ept"
Here are my entries in tomcat.conf
-------------------------------------------------------

#################### All jsp files will go to tomcat ####################
ApJServMount default /root

AddType text/jsp .jsp
AddHandler jserv-servlet .jsp

############################## Context mapping - all requests go to tomcat

ApJServMount /examples /root
ApJServMount /ept /usr/home/httpd/html/epttest/test

############################## Context mapping - you need to "deploy"
# ( copy or ln -s ) the context into htdocs
##

# ApJservMount /CONTEXT/servlet  /root
# <Location /CONTEXT/WEB-INF/ >
#      AllowOverride None
#      deny from all
# </Location>


ApJservMount /ept/servlet  /ept
<Location /ept/WEB-INF/ >
     jserv-servlet *.jsp
     AllowOverride None
     deny from all
</Location>
</IfModule>

-----------------------------------------------------------------------

Here are my entries for server .xml
-------------------------------------------------------------------------

<Context path="/ept" docBase="/usr/home/httpd/html/epttest/test" debug="9"
reloadable="true" >
        </Context>
---------------------------------------------------------------------------

Surprisingly here is the entry that comes into tomcat-apache.conf

---------------------------------------------------------------------------

AddType test/jsp .jsp
AddHandler jserv-servlet .jsp
Alias /ept /usr/local/tomcat/webapps/ept
<Directory "/usr/local/tomcat/webapps/ept">
    Options Indexes FollowSymLinks
</Directory>
ApJServMount /ept/servlet /ept
<Location /ept/WEB-INF/ >
    AllowOverride None
    deny from all
</Location>

----------------------------------------------------------------------------
----

Is there a reason for this?? Am I missing something??

Any help would be appreciated.

Thanks
Abhi


Re: Problem with tomcat-apache

Posted by "Julio Serje (@canada.com)" <js...@home.com>.
I think you don't need to modify tomcat.conf to set up a new context. Modify
only server.xml as per the documentation, and it should work fine. If you
are working with servlets modify web.xml to map them to directories.

Julio Serje
Calian Tech.



----- Original Message -----
From: Abhiman Srikant <ab...@EASTPOINT.COM>
To: <to...@jakarta.apache.org>
Sent: Wednesday, November 01, 2000 10:59 AM
Subject: Problem with tomcat-apache


> Hi,
>
> I am trying to set up a context on tomcat by name "ept"
> Here are my entries in tomcat.conf
> -------------------------------------------------------
>
> #################### All jsp files will go to tomcat ####################
> ApJServMount default /root
>
> AddType text/jsp .jsp
> AddHandler jserv-servlet .jsp
>
> ############################## Context mapping - all requests go to tomcat
>
> ApJServMount /examples /root
> ApJServMount /ept /usr/home/httpd/html/epttest/test
>
> ############################## Context mapping - you need to "deploy"
> # ( copy or ln -s ) the context into htdocs
> ##
>
> # ApJservMount /CONTEXT/servlet  /root
> # <Location /CONTEXT/WEB-INF/ >
> #      AllowOverride None
> #      deny from all
> # </Location>
>
>
> ApJservMount /ept/servlet  /ept
> <Location /ept/WEB-INF/ >
>      jserv-servlet *.jsp
>      AllowOverride None
>      deny from all
> </Location>
> </IfModule>
>
> -----------------------------------------------------------------------
>
> Here are my entries for server .xml
> -------------------------------------------------------------------------
>
> <Context path="/ept" docBase="/usr/home/httpd/html/epttest/test" debug="9"
> reloadable="true" >
>         </Context>
> --------------------------------------------------------------------------
-
>
> Surprisingly here is the entry that comes into tomcat-apache.conf
>
> --------------------------------------------------------------------------
-
>
> AddType test/jsp .jsp
> AddHandler jserv-servlet .jsp
> Alias /ept /usr/local/tomcat/webapps/ept
> <Directory "/usr/local/tomcat/webapps/ept">
>     Options Indexes FollowSymLinks
> </Directory>
> ApJServMount /ept/servlet /ept
> <Location /ept/WEB-INF/ >
>     AllowOverride None
>     deny from all
> </Location>
>
> --------------------------------------------------------------------------
--
> ----
>
> Is there a reason for this?? Am I missing something??
>
> Any help would be appreciated.
>
> Thanks
> Abhi
>