Hussayn,
We appear to be having the same problem with the mappings in Apache having
nothing to do with the mappings in web.xml. It appears to me that I will
have to rewrite all my web.xml mappings into the tomcat-apache.conf.
Interesting that no one appears to have dealt with this issue in the past
and that there has been little or no support from this list concerning it.
I thought this was the place to come and get answers. Instead all we appear
to be getting is a bunch of RTFM's from people who have no interest or time
to answer our email appropriately.
I will be working on this issue to as well and will forward any experience
I get to you.
-Mark Diggory
>Hi,
>try mod_rewrite. It's great!
>You have a nice doc in Apache's docs.
>
>cu.
> o,,,o
> ( 'o' )
> >''''<
> (''')(''') __
>
> Interpersonal Computing GmbH
> Dieter Plank
> Fachinformatiker - Anwendungsentwicklung (IHK)
> -Entwicklung-
> Augustenstrasse 20 - 22
> 80333 Muenchen
>
> Tel: ++49 89 219975-0
>
> Web: http://www.ipc.de Mail: [EMAIL PROTECTED]
>----- Original Message -----
>From: "Hussayn Dabbous" <[EMAIL PROTECTED]>
>To: <[EMAIL PROTECTED]>
>Sent: Thursday, April 19, 2001 10:08 PM
>Subject: how can i get apache to redirect a whole subdir to a servlet ?
>
>
> > Hy, there;
> >
> > i need to tunnel a whole subdirectory of my server through a servlet,
> > that does some internal access rights checking.
> >
> > Is it possible to configure tomcat/apache in a way, that all requests
> > within a specific subdir are forwarded to a servlet ?
> >
> >
> > I already tried it by creating a ...webapps/zone/WEB_INF/web.xml by using
>the
> > following servlet-mapping within the tomcat-config:
> >
> > ----------------------
> > <web-app>
> >
> > <servlet>
> > <servlet-name>zone-checker</servlet-name>
> > <servlet-class>com.saxess.ZoneChecker</servlet-class>
> > </servlet>
> >
> > <servlet-mapping>
> > <servlet-name>zone-checker</servlet-name>
> > <url-pattern>/zone/safe-area/*</url-pattern>
> > </servlet-mapping>
> >
> > </web-app>
> > ---------------------
> >
> > I checkecd, that the Servlet can be accessed by issuing this url:
> >
> > http://localhost/zone/servlet/zone-checker
> >
> > This is the expected behaviour. But the servlet is NOT invoked,
> > when i try e.g.:
> >
> > http://localhost/zone/safe-area/index.html
> >
> > which i expected also to be served from the servlet due to the
>servlet-mapping
> > rule above. Instead the index.html file is simply displayed in the
>broswer.
> > Maybe tomcat does not know about the servlet-mapping ?
> >
> >
> > For the server-config, i used following :
> >
> > -----------------------------------------
> > ...
> > Alias /zone "/mnt2/local/install/apache/jakarta/build/tomcat/webapps/zone"
> > <Directory "/mnt2/local/install/apache/jakarta/build/tomcat/webapps/zone">
> > Options Indexes FollowSymLinks
> > </Directory>
> > ApJServMount /zone/servlet /zone
> > <Location "/zone/WEB-INF/">
> > AllowOverride None
> > deny from all
> > </Location>
> > <Location "/zone/META-INF/">
> > AllowOverride None
> > deny from all
> > </Location>
> >
> > <LocationMatch /zone/*.jsp>
> > SetHandler jserv-servlet
> > </LocationMatch>
> >
> > <LocationMatch /zone/safe/*>
> > SetHandler jserv-servlet
> > </LocationMatch>
> > ...
> > -----------------------------------------
> >
> > Again i tried out lots of combinations, but none brought the desired
>results.
> > Even, if i redirect all requests from apache to tomcat as follows:
> >
> > ApJServMount /zone ajpv12://localhost:8007/zone
> >
> > Nothing happens (except the index.html is simply displayed)
> >
> > Maybe i completely missunderstand something here ? Anyone can help me ?
> > That would be great.
> >
> > Thanks, Hussayn
> > --
> > Dr. Hussayn Dabbous
> > SAXESS Software Design GmbH
> > Neuenh�fer Allee 125
> > 50935 K�ln
> > Telefon: +49-221-56011-0
> > Fax: +49-221-56011-20
> > E-Mail: [EMAIL PROTECTED]