RE: Index.jsp page in apache and tomcat config....
No need to bust out the sledgehammer when a light tap will do. All you need is a META tag in the head of your index.html... META HTTP-EQUIV=Refresh CONTENT=0; URL=index.jsp The client browser will take care of resolving/translating index.jsp to http://some.domain.com/index.jsp; John -Original Message- From: Raj Mettai [mailto:rmettai;broward.edu] Sent: Tuesday, October 22, 2002 11:55 AM To: [EMAIL PROTECTED] Subject: RE: Index.jsp page in apache and tomcat config I didn't configure apache to include mod_rewrite during installation. I have to redo the whole process of apache setup again to use mod_rewrite, Instead I have created an index.html with javascript code(see below) in it to redirect to index.jsp, it is working for me well so for. script language=JavaScript !-- var path = ; wholeurl = document.location.href; x = wholeurl.length; while((wholeurl.substring(x,x-1)) != /){ x--; } clipstart = x; path = wholeurl.substring(0,wholeurl.length -(wholeurl.length-clipstart)); path += 'index.jsp'; location.href = path; //-- /script thanks a lot to everybody who helped me with this issue.. -Raj [EMAIL PROTECTED] 10/18/02 05:58PM Just for clarification, Apache reads the LoadModule lines from the top down. If you put the LoadModule line for mod_jk to the end of that section then mod_rewrite will be loaded first. rls Turner, John [EMAIL PROTECTED] 10/18/2002 08:47 AM Please respond to Tomcat Users List To: 'Tomcat Users List' [EMAIL PROTECTED] cc: Subject:RE: Index.jsp page in apache and tomcat config You could try a mod_rewrite rule for /online/ that translated to /online/index.jsp. Whether that worked or not would depend on the sequence of modules in Apache...would the rewrite rule happen before or after the JkMount rule? I'm not familiar enough with Apache module internals to know which would happen first...if the JkMount rule happened first, the mod_rewrite rule would have no effect. John -Original Message- From: Raj Mettai [mailto:rmettai;broward.edu] Sent: Friday, October 18, 2002 11:41 AM To: [EMAIL PROTECTED] Subject: RE: Index.jsp page in apache and tomcat config I have already defined index.jsp to DirectoryIndex listingBut I am wondering even if I have index.jsp in DirectoryIndex and index.jsp is not on apache web-app directory, how would apache know to bring up index.jsp. I think I have to put some specific forwarding rules for Directory links in httpd.conf or else I have to go with your idea of putting index.html with a redirect to index.jsp. thanks -Raj [EMAIL PROTECTED] 10/18/02 11:19AM I checked, it is currently set to index.html index.htm index.jsp. John -Original Message- From: Mark Eggers [mailto:its_toasted;yahoo.com] Sent: Friday, October 18, 2002 11:12 AM To: Tomcat Users List Subject: RE: Index.jsp page in apache and tomcat config There is a DirectoryIndex option in the configuration file. Out of the box it's set to index.html. Add index.jsp to the list. /mde/ just my two cents . . . . __ Do you Yahoo!? Faith Hill - Exclusive Performances, Videos More http://faith.yahoo.com -- To unsubscribe, e-mail: mailto:tomcat-user-unsubscribe;jakarta.apache.org For additional commands, e-mail: mailto:tomcat-user-help;jakarta.apache.org -- To unsubscribe, e-mail: mailto:tomcat-user-unsubscribe;jakarta.apache.org For additional commands, e-mail: mailto:tomcat-user-help;jakarta.apache.org -- To unsubscribe, e-mail: mailto:tomcat-user-unsubscribe;jakarta.apache.org For additional commands, e-mail: mailto:tomcat-user-help;jakarta.apache.org -- To unsubscribe, e-mail: mailto:tomcat-user-unsubscribe;jakarta.apache.org For additional commands, e-mail: mailto:tomcat-user-help;jakarta.apache.org -- To unsubscribe, e-mail: mailto:tomcat-user-unsubscribe;jakarta.apache.org For additional commands, e-mail: mailto:tomcat-user-help;jakarta.apache.org
RE: Index.jsp page in apache and tomcat config....
I don't have to worry about the javascript compatability now with browsers at all, thanks a lot John, that worked like a charm... you make things really simple. thanks again.. -Raj [EMAIL PROTECTED] 10/23/02 08:43AM No need to bust out the sledgehammer when a light tap will do. All you need is a META tag in the head of your index.html... META HTTP-EQUIV=Refresh CONTENT=0; URL=index.jsp The client browser will take care of resolving/translating index.jsp to http://some.domain.com/index.jsp; John -Original Message- From: Raj Mettai [mailto:rmettai;broward.edu] Sent: Tuesday, October 22, 2002 11:55 AM To: [EMAIL PROTECTED] Subject: RE: Index.jsp page in apache and tomcat config I didn't configure apache to include mod_rewrite during installation. I have to redo the whole process of apache setup again to use mod_rewrite, Instead I have created an index.html with javascript code(see below) in it to redirect to index.jsp, it is working for me well so for. script language=JavaScript !-- var path = ; wholeurl = document.location.href; x = wholeurl.length; while((wholeurl.substring(x,x-1)) != /){ x--; } clipstart = x; path = wholeurl.substring(0,wholeurl.length -(wholeurl.length-clipstart)); path += 'index.jsp'; location.href = path; //-- /script thanks a lot to everybody who helped me with this issue.. -Raj [EMAIL PROTECTED] 10/18/02 05:58PM Just for clarification, Apache reads the LoadModule lines from the top down. If you put the LoadModule line for mod_jk to the end of that section then mod_rewrite will be loaded first. rls Turner, John [EMAIL PROTECTED] 10/18/2002 08:47 AM Please respond to Tomcat Users List To: 'Tomcat Users List' [EMAIL PROTECTED] cc: Subject:RE: Index.jsp page in apache and tomcat config You could try a mod_rewrite rule for /online/ that translated to /online/index.jsp. Whether that worked or not would depend on the sequence of modules in Apache...would the rewrite rule happen before or after the JkMount rule? I'm not familiar enough with Apache module internals to know which would happen first...if the JkMount rule happened first, the mod_rewrite rule would have no effect. John -Original Message- From: Raj Mettai [mailto:rmettai;broward.edu] Sent: Friday, October 18, 2002 11:41 AM To: [EMAIL PROTECTED] Subject: RE: Index.jsp page in apache and tomcat config I have already defined index.jsp to DirectoryIndex listingBut I am wondering even if I have index.jsp in DirectoryIndex and index.jsp is not on apache web-app directory, how would apache know to bring up index.jsp. I think I have to put some specific forwarding rules for Directory links in httpd.conf or else I have to go with your idea of putting index.html with a redirect to index.jsp. thanks -Raj [EMAIL PROTECTED] 10/18/02 11:19AM I checked, it is currently set to index.html index.htm index.jsp. John -Original Message- From: Mark Eggers [mailto:its_toasted;yahoo.com] Sent: Friday, October 18, 2002 11:12 AM To: Tomcat Users List Subject: RE: Index.jsp page in apache and tomcat config There is a DirectoryIndex option in the configuration file. Out of the box it's set to index.html. Add index.jsp to the list. /mde/ just my two cents . . . . __ Do you Yahoo!? Faith Hill - Exclusive Performances, Videos More http://faith.yahoo.com -- To unsubscribe, e-mail: mailto:tomcat-user-unsubscribe;jakarta.apache.org For additional commands, e-mail: mailto:tomcat-user-help;jakarta.apache.org -- To unsubscribe, e-mail: mailto:tomcat-user-unsubscribe;jakarta.apache.org For additional commands, e-mail: mailto:tomcat-user-help;jakarta.apache.org -- To unsubscribe, e-mail: mailto:tomcat-user-unsubscribe;jakarta.apache.org For additional commands, e-mail: mailto:tomcat-user-help;jakarta.apache.org -- To unsubscribe, e-mail: mailto:tomcat-user-unsubscribe;jakarta.apache.org For additional commands, e-mail: mailto:tomcat-user-help;jakarta.apache.org -- To unsubscribe, e-mail: mailto:tomcat-user-unsubscribe;jakarta.apache.org For additional commands, e-mail: mailto:tomcat-user-help;jakarta.apache.org
RE: Index.jsp page in apache and tomcat config....
Keep things simple at work and you have more time for play, that's my motto. :) Glad I could help. John -Original Message- From: Raj Mettai [mailto:rmettai;broward.edu] Sent: Wednesday, October 23, 2002 9:35 AM To: [EMAIL PROTECTED] Subject: RE: Index.jsp page in apache and tomcat config I don't have to worry about the javascript compatability now with browsers at all, thanks a lot John, that worked like a charm... you make things really simple. thanks again.. -Raj [EMAIL PROTECTED] 10/23/02 08:43AM No need to bust out the sledgehammer when a light tap will do. All you need is a META tag in the head of your index.html... META HTTP-EQUIV=Refresh CONTENT=0; URL=index.jsp The client browser will take care of resolving/translating index.jsp to http://some.domain.com/index.jsp; John -Original Message- From: Raj Mettai [mailto:rmettai;broward.edu] Sent: Tuesday, October 22, 2002 11:55 AM To: [EMAIL PROTECTED] Subject: RE: Index.jsp page in apache and tomcat config I didn't configure apache to include mod_rewrite during installation. I have to redo the whole process of apache setup again to use mod_rewrite, Instead I have created an index.html with javascript code(see below) in it to redirect to index.jsp, it is working for me well so for. script language=JavaScript !-- var path = ; wholeurl = document.location.href; x = wholeurl.length; while((wholeurl.substring(x,x-1)) != /){ x--; } clipstart = x; path = wholeurl.substring(0,wholeurl.length -(wholeurl.length-clipstart)); path += 'index.jsp'; location.href = path; //-- /script -- To unsubscribe, e-mail: mailto:tomcat-user-unsubscribe;jakarta.apache.org For additional commands, e-mail: mailto:tomcat-user-help;jakarta.apache.org
RE: Index.jsp page in apache and tomcat config....
I didn't configure apache to include mod_rewrite during installation. I have to redo the whole process of apache setup again to use mod_rewrite, Instead I have created an index.html with javascript code(see below) in it to redirect to index.jsp, it is working for me well so for. script language=JavaScript !-- var path = ; wholeurl = document.location.href; x = wholeurl.length; while((wholeurl.substring(x,x-1)) != /){ x--; } clipstart = x; path = wholeurl.substring(0,wholeurl.length -(wholeurl.length-clipstart)); path += 'index.jsp'; location.href = path; //-- /script thanks a lot to everybody who helped me with this issue.. -Raj [EMAIL PROTECTED] 10/18/02 05:58PM Just for clarification, Apache reads the LoadModule lines from the top down. If you put the LoadModule line for mod_jk to the end of that section then mod_rewrite will be loaded first. rls Turner, John [EMAIL PROTECTED] 10/18/2002 08:47 AM Please respond to Tomcat Users List To: 'Tomcat Users List' [EMAIL PROTECTED] cc: Subject:RE: Index.jsp page in apache and tomcat config You could try a mod_rewrite rule for /online/ that translated to /online/index.jsp. Whether that worked or not would depend on the sequence of modules in Apache...would the rewrite rule happen before or after the JkMount rule? I'm not familiar enough with Apache module internals to know which would happen first...if the JkMount rule happened first, the mod_rewrite rule would have no effect. John -Original Message- From: Raj Mettai [mailto:rmettai;broward.edu] Sent: Friday, October 18, 2002 11:41 AM To: [EMAIL PROTECTED] Subject: RE: Index.jsp page in apache and tomcat config I have already defined index.jsp to DirectoryIndex listingBut I am wondering even if I have index.jsp in DirectoryIndex and index.jsp is not on apache web-app directory, how would apache know to bring up index.jsp. I think I have to put some specific forwarding rules for Directory links in httpd.conf or else I have to go with your idea of putting index.html with a redirect to index.jsp. thanks -Raj [EMAIL PROTECTED] 10/18/02 11:19AM I checked, it is currently set to index.html index.htm index.jsp. John -Original Message- From: Mark Eggers [mailto:its_toasted;yahoo.com] Sent: Friday, October 18, 2002 11:12 AM To: Tomcat Users List Subject: RE: Index.jsp page in apache and tomcat config There is a DirectoryIndex option in the configuration file. Out of the box it's set to index.html. Add index.jsp to the list. /mde/ just my two cents . . . . __ Do you Yahoo!? Faith Hill - Exclusive Performances, Videos More http://faith.yahoo.com -- To unsubscribe, e-mail: mailto:tomcat-user-unsubscribe;jakarta.apache.org For additional commands, e-mail: mailto:tomcat-user-help;jakarta.apache.org -- To unsubscribe, e-mail: mailto:tomcat-user-unsubscribe;jakarta.apache.org For additional commands, e-mail: mailto:tomcat-user-help;jakarta.apache.org -- To unsubscribe, e-mail: mailto:tomcat-user-unsubscribe;jakarta.apache.org For additional commands, e-mail: mailto:tomcat-user-help;jakarta.apache.org -- To unsubscribe, e-mail: mailto:tomcat-user-unsubscribe;jakarta.apache.org For additional commands, e-mail: mailto:tomcat-user-help;jakarta.apache.org
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:rmettai;broward.edu] 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:tomcat-user-unsubscribe;jakarta.apache.org For additional commands, e-mail: mailto:tomcat-user-help;jakarta.apache.org
RE: Index.jsp page in apache and tomcat config....
What about /online/*.jsp instead of /online/* ? John -Original Message- From: Raj Mettai [mailto:rmettai;broward.edu] 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:rmettai;broward.edu] 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:tomcat-user-unsubscribe;jakarta.apache.org For additional commands, e-mail: mailto:tomcat-user-help;jakarta.apache.org -- To unsubscribe, e-mail: mailto:tomcat-user-unsubscribe;jakarta.apache.org For additional commands, e-mail: mailto:tomcat-user-help;jakarta.apache.org
RE: Index.jsp page in apache and tomcat config....
that works great by serving only jsp's from tomcat and all static data from apache, but when I have a linklike 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] 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
RE: Index.jsp page in apache and tomcat config....
I'll take a look at the httpd.conf file, but I am no Apache expert. My solutions tend to be crude, but effective. Finesse and elegance are not my strong points. :) So, on that note, the way I would handle this is stick a index.html file in /online that just did a zero-second meta-refresh to /online/index.jsp. There's probably a more elegant way to handle that in Apache, though. John -Original Message- From: Raj Mettai [mailto:rmettai;broward.edu] Sent: Friday, October 18, 2002 10:42 AM To: [EMAIL PROTECTED] Subject: RE: Index.jsp page in apache and tomcat config 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:rmettai;broward.edu] 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:rmettai;broward.edu] 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:tomcat-user-unsubscribe;jakarta.apache.org For additional commands, e-mail: mailto:tomcat-user-help;jakarta.apache.org -- To unsubscribe, e-mail: mailto:tomcat-user-unsubscribe;jakarta.apache.org For additional commands, e-mail: mailto:tomcat-user-help;jakarta.apache.org -- To unsubscribe, e-mail: mailto:tomcat-user-unsubscribe;jakarta.apache.org For additional commands, e-mail: mailto:tomcat-user-help;jakarta.apache.org
RE: Index.jsp page in apache and tomcat config....
There is a DirectoryIndex option in the configuration file. Out of the box it's set to index.html. Add index.jsp to the list. /mde/ just my two cents . . . . __ Do you Yahoo!? Faith Hill - Exclusive Performances, Videos More http://faith.yahoo.com -- To unsubscribe, e-mail: mailto:tomcat-user-unsubscribe;jakarta.apache.org For additional commands, e-mail: mailto:tomcat-user-help;jakarta.apache.org
RE: Index.jsp page in apache and tomcat config....
I checked, it is currently set to index.html index.htm index.jsp. John -Original Message- From: Mark Eggers [mailto:its_toasted;yahoo.com] Sent: Friday, October 18, 2002 11:12 AM To: Tomcat Users List Subject: RE: Index.jsp page in apache and tomcat config There is a DirectoryIndex option in the configuration file. Out of the box it's set to index.html. Add index.jsp to the list. /mde/ just my two cents . . . . __ Do you Yahoo!? Faith Hill - Exclusive Performances, Videos More http://faith.yahoo.com -- To unsubscribe, e-mail: mailto:tomcat-user-unsubscribe;jakarta.apache.org For additional commands, e-mail: mailto:tomcat-user-help;jakarta.apache.org -- To unsubscribe, e-mail: mailto:tomcat-user-unsubscribe;jakarta.apache.org For additional commands, e-mail: mailto:tomcat-user-help;jakarta.apache.org
RE: Index.jsp page in apache and tomcat config....
I have already defined index.jsp to DirectoryIndex listingBut I am wondering even if I have index.jsp in DirectoryIndex and index.jsp is not on apache web-app directory, how would apache know to bring up index.jsp. I think I have to put some specific forwarding rules for Directory links in httpd.conf or else I have to go with your idea of putting index.html with a redirect to index.jsp. thanks -Raj [EMAIL PROTECTED] 10/18/02 11:19AM I checked, it is currently set to index.html index.htm index.jsp. John -Original Message- From: Mark Eggers [mailto:its_toasted;yahoo.com] Sent: Friday, October 18, 2002 11:12 AM To: Tomcat Users List Subject: RE: Index.jsp page in apache and tomcat config There is a DirectoryIndex option in the configuration file. Out of the box it's set to index.html. Add index.jsp to the list. /mde/ just my two cents . . . . __ Do you Yahoo!? Faith Hill - Exclusive Performances, Videos More http://faith.yahoo.com -- To unsubscribe, e-mail: mailto:tomcat-user-unsubscribe;jakarta.apache.org For additional commands, e-mail: mailto:tomcat-user-help;jakarta.apache.org -- To unsubscribe, e-mail: mailto:tomcat-user-unsubscribe;jakarta.apache.org For additional commands, e-mail: mailto:tomcat-user-help;jakarta.apache.org
RE: Index.jsp page in apache and tomcat config....
You could try a mod_rewrite rule for /online/ that translated to /online/index.jsp. Whether that worked or not would depend on the sequence of modules in Apache...would the rewrite rule happen before or after the JkMount rule? I'm not familiar enough with Apache module internals to know which would happen first...if the JkMount rule happened first, the mod_rewrite rule would have no effect. John -Original Message- From: Raj Mettai [mailto:rmettai;broward.edu] Sent: Friday, October 18, 2002 11:41 AM To: [EMAIL PROTECTED] Subject: RE: Index.jsp page in apache and tomcat config I have already defined index.jsp to DirectoryIndex listingBut I am wondering even if I have index.jsp in DirectoryIndex and index.jsp is not on apache web-app directory, how would apache know to bring up index.jsp. I think I have to put some specific forwarding rules for Directory links in httpd.conf or else I have to go with your idea of putting index.html with a redirect to index.jsp. thanks -Raj [EMAIL PROTECTED] 10/18/02 11:19AM I checked, it is currently set to index.html index.htm index.jsp. John -Original Message- From: Mark Eggers [mailto:its_toasted;yahoo.com] Sent: Friday, October 18, 2002 11:12 AM To: Tomcat Users List Subject: RE: Index.jsp page in apache and tomcat config There is a DirectoryIndex option in the configuration file. Out of the box it's set to index.html. Add index.jsp to the list. /mde/ just my two cents . . . . __ Do you Yahoo!? Faith Hill - Exclusive Performances, Videos More http://faith.yahoo.com -- To unsubscribe, e-mail: mailto:tomcat-user-unsubscribe;jakarta.apache.org For additional commands, e-mail: mailto:tomcat-user-help;jakarta.apache.org -- To unsubscribe, e-mail: mailto:tomcat-user-unsubscribe;jakarta.apache.org For additional commands, e-mail: mailto:tomcat-user-help;jakarta.apache.org -- To unsubscribe, e-mail: mailto:tomcat-user-unsubscribe;jakarta.apache.org For additional commands, e-mail: mailto:tomcat-user-help;jakarta.apache.org
RE: Index.jsp page in apache and tomcat config....
On Fri, 18 Oct 2002, Raj Mettai wrote: I have already defined index.jsp to DirectoryIndex listingBut I am wondering even if I have index.jsp in DirectoryIndex and index.jsp is not on apache web-app directory, how would apache know to bring up index.jsp. I think I have to put some specific forwarding rules for Directory links in httpd.conf or else I have to go with your idea of putting index.html with a redirect to index.jsp. Did you define index.jsp as a welcome-file in the web.xml? [EMAIL PROTECTED] 10/18/02 11:19AM I checked, it is currently set to index.html index.htm index.jsp. John -Original Message- From: Mark Eggers [mailto:its_toasted;yahoo.com] Sent: Friday, October 18, 2002 11:12 AM To: Tomcat Users List Subject: RE: Index.jsp page in apache and tomcat config There is a DirectoryIndex option in the configuration file. Out of the box it's set to index.html. Add index.jsp to the list. /mde/ just my two cents . . . . __ Do you Yahoo!? Faith Hill - Exclusive Performances, Videos More http://faith.yahoo.com -- To unsubscribe, e-mail: mailto:tomcat-user-unsubscribe;jakarta.apache.org For additional commands, e-mail: mailto:tomcat-user-help;jakarta.apache.org -- To unsubscribe, e-mail: mailto:tomcat-user-unsubscribe;jakarta.apache.org For additional commands, e-mail: mailto:tomcat-user-help;jakarta.apache.org Milt Epstein Research Programmer Integration and Software Engineering (ISE) Campus Information Technologies and Educational Services (CITES) University of Illinois at Urbana-Champaign (UIUC) [EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:tomcat-user-unsubscribe;jakarta.apache.org For additional commands, e-mail: mailto:tomcat-user-help;jakarta.apache.org
RE: Index.jsp page in apache and tomcat config....
yes I did -Raj [EMAIL PROTECTED] 10/18/02 12:46PM On Fri, 18 Oct 2002, Raj Mettai wrote: I have already defined index.jsp to DirectoryIndex listingBut I am wondering even if I have index.jsp in DirectoryIndex and index.jsp is not on apache web-app directory, how would apache know to bring up index.jsp. I think I have to put some specific forwarding rules for Directory links in httpd.conf or else I have to go with your idea of putting index.html with a redirect to index.jsp. Did you define index.jsp as a welcome-file in the web.xml? [EMAIL PROTECTED] 10/18/02 11:19AM I checked, it is currently set to index.html index.htm index.jsp. John -Original Message- From: Mark Eggers [mailto:its_toasted;yahoo.com] Sent: Friday, October 18, 2002 11:12 AM To: Tomcat Users List Subject: RE: Index.jsp page in apache and tomcat config There is a DirectoryIndex option in the configuration file. Out of the box it's set to index.html. Add index.jsp to the list. /mde/ just my two cents . . . . __ Do you Yahoo!? Faith Hill - Exclusive Performances, Videos More http://faith.yahoo.com -- To unsubscribe, e-mail: mailto:tomcat-user-unsubscribe;jakarta.apache.org For additional commands, e-mail: mailto:tomcat-user-help;jakarta.apache.org -- To unsubscribe, e-mail: mailto:tomcat-user-unsubscribe;jakarta.apache.org For additional commands, e-mail: mailto:tomcat-user-help;jakarta.apache.org Milt Epstein Research Programmer Integration and Software Engineering (ISE) Campus Information Technologies and Educational Services (CITES) University of Illinois at Urbana-Champaign (UIUC) [EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:tomcat-user-unsubscribe;jakarta.apache.org For additional commands, e-mail: mailto:tomcat-user-help;jakarta.apache.org
RE: Index.jsp page in apache and tomcat config....
Just for clarification, Apache reads the LoadModule lines from the top down. If you put the LoadModule line for mod_jk to the end of that section then mod_rewrite will be loaded first. rls Turner, John [EMAIL PROTECTED] 10/18/2002 08:47 AM Please respond to Tomcat Users List To: 'Tomcat Users List' [EMAIL PROTECTED] cc: Subject:RE: Index.jsp page in apache and tomcat config You could try a mod_rewrite rule for /online/ that translated to /online/index.jsp. Whether that worked or not would depend on the sequence of modules in Apache...would the rewrite rule happen before or after the JkMount rule? I'm not familiar enough with Apache module internals to know which would happen first...if the JkMount rule happened first, the mod_rewrite rule would have no effect. John -Original Message- From: Raj Mettai [mailto:rmettai;broward.edu] Sent: Friday, October 18, 2002 11:41 AM To: [EMAIL PROTECTED] Subject: RE: Index.jsp page in apache and tomcat config I have already defined index.jsp to DirectoryIndex listingBut I am wondering even if I have index.jsp in DirectoryIndex and index.jsp is not on apache web-app directory, how would apache know to bring up index.jsp. I think I have to put some specific forwarding rules for Directory links in httpd.conf or else I have to go with your idea of putting index.html with a redirect to index.jsp. thanks -Raj [EMAIL PROTECTED] 10/18/02 11:19AM I checked, it is currently set to index.html index.htm index.jsp. John -Original Message- From: Mark Eggers [mailto:its_toasted;yahoo.com] Sent: Friday, October 18, 2002 11:12 AM To: Tomcat Users List Subject: RE: Index.jsp page in apache and tomcat config There is a DirectoryIndex option in the configuration file. Out of the box it's set to index.html. Add index.jsp to the list. /mde/ just my two cents . . . . __ Do you Yahoo!? Faith Hill - Exclusive Performances, Videos More http://faith.yahoo.com -- To unsubscribe, e-mail: mailto:tomcat-user-unsubscribe;jakarta.apache.org For additional commands, e-mail: mailto:tomcat-user-help;jakarta.apache.org -- To unsubscribe, e-mail: mailto:tomcat-user-unsubscribe;jakarta.apache.org For additional commands, e-mail: mailto:tomcat-user-help;jakarta.apache.org -- To unsubscribe, e-mail: mailto:tomcat-user-unsubscribe;jakarta.apache.org For additional commands, e-mail: mailto:tomcat-user-help;jakarta.apache.org -- To unsubscribe, e-mail: mailto:tomcat-user-unsubscribe;jakarta.apache.org For additional commands, e-mail: mailto:tomcat-user-help;jakarta.apache.org
RE: Index.jsp page in apache and tomcat config....
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]