that works great by serving only jsp's from tomcat and all static data from apache, but when I have a link like this http://myurl/online/  I get a 403 access forbidden it doesn't pick up index.jsp by default. How do I make apache to default to index.jsp for all directory browsing and automatically forward the request to tomcat.
 
find attached httpd.conf file.......
 
thanks a lot
 
-Raj
 

>>> [EMAIL PROTECTED] 10/18/02 08:58AM >>>

What about /online/*.jsp instead of /online/* ?

John


> -----Original Message-----
> From: Raj Mettai [mailto:[EMAIL PROTECTED]]
> Sent: Thursday, October 17, 2002 4:11 PM
> To: [EMAIL PROTECTED]
> Subject: RE: Index.jsp page in apache and tomcat config....
>
>
> Hi John,
>
> thanks for your response, somehow I missed your response and
> was waiting to hear on this ...anyway, as you said I have all
> static data on apache and all dynamic data on tomcat. When I
> do JkMount for /online/* and index.jsp in web.xml it works
> great but Apache forwards all requests to tomcat even images
> and include files will be looked under tomcat.
>
> is there anyway, to do jkmount  /* ajp13 and still have
> apache serve static pages and images..
>
> thanks again
>
> -Raj
>
>
> [EMAIL PROTECTED] 10/09/02 07:53AM >>>
>
> OK, if you have things separated like that, then all of your
> static content
> is on the apache server, and all of your dynamic content is
> on the tomcat
> server.  Right?
>
> In that scenario, /online has only dynamic content, since
> /online/index.jsp
> needs to go to Tomcat.  My guess is you have static and
> dynamic content in
> /online, which means you should probably add a JkMount mapping for
> /online/*.jsp, not just /*.jsp.
>
> If /online has only dynamic content, then add a JkMount for
> /online/* to
> Tomcat and setup a welcome file of index.jsp in your web.xml,
> because in
> that scenario (/online = Tomcat server) Apache has no way of
> finding the
> file.
>
> John
>
> > -----Original Message-----
> > From: Raj Mettai [mailto:[EMAIL PROTECTED]]
> > Sent: Tuesday, October 08, 2002 4:44 PM
> > To: [EMAIL PROTECTED]
> > Subject: Index.jsp page in apache and tomcat config....
> >
> >
> > Hi all,
> >
> > I have apache(2.0.39) and tomcat(4.0.4) configured on
> > different solaris 8 machines using mod_jk such that apache
> > servers all html and images while tomcat servers jsp and servlets.
> >
> > Here is my jkMount from httpd.conf
> > JkMount /*.jsp tomcat1
> > JkMount /servlet/* tomcat1
> >
> > I want to configure apache to default to index.jsp page when
> > I try to access the directory (ex : 
> > http://www.apacheserver.com/online/  should go to
> > http://www.apacheserver.com/online/index.jsp). How can I
> > achieve this, the apache documentroot directory does not have
> > any index.jsp's,so how can you make apache to defualt to index.jsp.
> >
> > I have modified DirectoryIndex also to include index.jsp,
> > still apache gives 403(Access forbidden).
> >
> > I have lot of links in the site that are just linking to
> > directory without index.jsp, I have to modify them all otherwise.
> >
> > any thoughts ????
> >
> > thanks
> >
> > -Raj
> >
>
> --
> To unsubscribe, e-mail:  
<mailto:[EMAIL PROTECTED]>
For additional commands, e-mail:
<mailto:[EMAIL PROTECTED]>

--
To unsubscribe, e-mail:   <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>

Attachment: httpd.conf
Description: Binary data

--
To unsubscribe, e-mail:   <mailto:tomcat-user-unsubscribe@;jakarta.apache.org>
For additional commands, e-mail: <mailto:tomcat-user-help@;jakarta.apache.org>


Reply via email to