Re: Apache Index page jsp and sessionid with JKMount *.jsp
Turner, John wrote: That's pretty much the solution...this has come up before. By the time JK gets involved, Apache is just about done with the URL...it doesn't perform any rewriting, etc. it's just looking for a match. But in my understanding first of all when Apache is requested to process some directory (for example, http://www.somehost.com/test/), it tries to invoke any file listed in its DirectoryIndex directive, then he finds index.jsp and invokes it, causing to jk to wake up. So Apache is first in action, and jk is following it. Am I right? The elegant solution is probably using mod_rewrite to rewrite requests ending in / to /index.jsp. John -Original Message- From: Chad Cannell [mailto:ccannell;elogex.com] Sent: Wednesday, November 13, 2002 3:45 PM To: Tomcat Users List Subject: Apache Index page jsp and sessionid with JKMount *.jsp I am trying to set Apache's index file to index.jsp. It is not working. --= [ cut ] =-- Using Apache 2.0, ajp13. Tomcat 3.2x Chad -- To unsubscribe, e-mail: mailto:tomcat-user-unsubscribe;jakarta.apache.org For additional commands, e-mail: mailto:tomcat-user-help;jakarta.apache.org
RE: Apache Index page jsp and sessionid with JKMount *.jsp
All I know is the behavior I see on my servers. I have DirectoryIndex set to index.jsp. My Apache has mod_dir. Calling a directory mapped to Tomcat (such as /myApp) with http://localhost/myApp doesn't return anything, definitely not index.jsp. This is on 4.0.4 and 4.1.12. If your DirectoryIndex does work with index.jsp, I'd be interested in seeing your configuration. About the only way I can think of to approach this problem is to play with the load order for the Apache modules...perhaps loading mod_jk at a different time or loading mod_dir after mod_jk might change the behavior. For me, at this time, it's just easier to stick an index.html file in there with a refresh of 0. John -Original Message- From: Veniamin Fichin [mailto:3ca28f66;mail.ru] Sent: Thursday, November 14, 2002 3:31 AM To: Tomcat Users List Subject: Re: Apache Index page jsp and sessionid with JKMount *.jsp Turner, John wrote: That's pretty much the solution...this has come up before. By the time JK gets involved, Apache is just about done with the URL...it doesn't perform any rewriting, etc. it's just looking for a match. But in my understanding first of all when Apache is requested to process some directory (for example, http://www.somehost.com/test/), it tries to invoke any file listed in its DirectoryIndex directive, then he finds index.jsp and invokes it, causing to jk to wake up. So Apache is first in action, and jk is following it. Am I right? The elegant solution is probably using mod_rewrite to rewrite requests ending in / to /index.jsp. John -Original Message- From: Chad Cannell [mailto:ccannell;elogex.com] Sent: Wednesday, November 13, 2002 3:45 PM To: Tomcat Users List Subject: Apache Index page jsp and sessionid with JKMount *.jsp I am trying to set Apache's index file to index.jsp. It is not working. --= [ cut ] =-- Using Apache 2.0, ajp13. Tomcat 3.2x Chad -- 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: Apache Index page jsp and sessionid with JKMount *.jsp
Yea, I'm more comfortable at this point just adding the meta redirect. Thanks for all the suggestions though! C -Original Message- From: Turner, John [mailto:JTurner;AAS.com] Sent: Thursday, November 14, 2002 8:22 AM To: 'Tomcat Users List' Subject: RE: Apache Index page jsp and sessionid with JKMount *.jsp All I know is the behavior I see on my servers. I have DirectoryIndex set to index.jsp. My Apache has mod_dir. Calling a directory mapped to Tomcat (such as /myApp) with http://localhost/myApp doesn't return anything, definitely not index.jsp. This is on 4.0.4 and 4.1.12. If your DirectoryIndex does work with index.jsp, I'd be interested in seeing your configuration. About the only way I can think of to approach this problem is to play with the load order for the Apache modules...perhaps loading mod_jk at a different time or loading mod_dir after mod_jk might change the behavior. For me, at this time, it's just easier to stick an index.html file in there with a refresh of 0. John -Original Message- From: Veniamin Fichin [mailto:3ca28f66;mail.ru] Sent: Thursday, November 14, 2002 3:31 AM To: Tomcat Users List Subject: Re: Apache Index page jsp and sessionid with JKMount *.jsp Turner, John wrote: That's pretty much the solution...this has come up before. By the time JK gets involved, Apache is just about done with the URL...it doesn't perform any rewriting, etc. it's just looking for a match. But in my understanding first of all when Apache is requested to process some directory (for example, http://www.somehost.com/test/), it tries to invoke any file listed in its DirectoryIndex directive, then he finds index.jsp and invokes it, causing to jk to wake up. So Apache is first in action, and jk is following it. Am I right? The elegant solution is probably using mod_rewrite to rewrite requests ending in / to /index.jsp. John -Original Message- From: Chad Cannell [mailto:ccannell;elogex.com] Sent: Wednesday, November 13, 2002 3:45 PM To: Tomcat Users List Subject: Apache Index page jsp and sessionid with JKMount *.jsp I am trying to set Apache's index file to index.jsp. It is not working. --= [ cut ] =-- Using Apache 2.0, ajp13. Tomcat 3.2x Chad -- 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: Apache Index page jsp and sessionid with JKMount *.jsp
I spend a good week trying to solve this and other problems recently. Just add a virtual server (in a host tag) to your server.xml file the same as the VirtualHost in apache. Ditch the /appname unless it is not the only thing on that domain name. If you want it just use an alias /appname /bin/tomcat/webapps/appname Andoni. - Original Message - From: Chad Cannell [EMAIL PROTECTED] To: Tomcat Users List [EMAIL PROTECTED] Sent: Thursday, November 14, 2002 2:08 PM Subject: RE: Apache Index page jsp and sessionid with JKMount *.jsp Yea, I'm more comfortable at this point just adding the meta redirect. Thanks for all the suggestions though! C -Original Message- From: Turner, John [mailto:JTurner;AAS.com] Sent: Thursday, November 14, 2002 8:22 AM To: 'Tomcat Users List' Subject: RE: Apache Index page jsp and sessionid with JKMount *.jsp All I know is the behavior I see on my servers. I have DirectoryIndex set to index.jsp. My Apache has mod_dir. Calling a directory mapped to Tomcat (such as /myApp) with http://localhost/myApp doesn't return anything, definitely not index.jsp. This is on 4.0.4 and 4.1.12. If your DirectoryIndex does work with index.jsp, I'd be interested in seeing your configuration. About the only way I can think of to approach this problem is to play with the load order for the Apache modules...perhaps loading mod_jk at a different time or loading mod_dir after mod_jk might change the behavior. For me, at this time, it's just easier to stick an index.html file in there with a refresh of 0. John -Original Message- From: Veniamin Fichin [mailto:3ca28f66;mail.ru] Sent: Thursday, November 14, 2002 3:31 AM To: Tomcat Users List Subject: Re: Apache Index page jsp and sessionid with JKMount *.jsp Turner, John wrote: That's pretty much the solution...this has come up before. By the time JK gets involved, Apache is just about done with the URL...it doesn't perform any rewriting, etc. it's just looking for a match. But in my understanding first of all when Apache is requested to process some directory (for example, http://www.somehost.com/test/), it tries to invoke any file listed in its DirectoryIndex directive, then he finds index.jsp and invokes it, causing to jk to wake up. So Apache is first in action, and jk is following it. Am I right? The elegant solution is probably using mod_rewrite to rewrite requests ending in / to /index.jsp. John -Original Message- From: Chad Cannell [mailto:ccannell;elogex.com] Sent: Wednesday, November 13, 2002 3:45 PM To: Tomcat Users List Subject: Apache Index page jsp and sessionid with JKMount *.jsp I am trying to set Apache's index file to index.jsp. It is not working. --= [ cut ] =-- Using Apache 2.0, ajp13. Tomcat 3.2x Chad -- 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: Apache Index page jsp and sessionid with JKMount *.jsp
I have DirectoryIndex set to index.jsp. My Apache has mod_dir. Calling a directory mapped to Tomcat (such as /myApp) with http://localhost/myApp doesn't return anything, definitely not index.jsp. This is on 4.0.4 and 4.1.12. One problem is that for this to work is that Apache has to see an index.jsp in your myApp directory. Put an empty version of that file (or touch index.jsp if using Unix/Linux) in and then Apache will see that the index file exists and will then attempt to serve it, but then note the .jsp suffix so it then passes it back to Tomcat. David -- To unsubscribe, e-mail: mailto:tomcat-user-unsubscribe;jakarta.apache.org For additional commands, e-mail: mailto:tomcat-user-help;jakarta.apache.org
RE: Apache Index page jsp and sessionid with JKMount *.jsp
I don't think that's the issue. My httpd.conf has the following, inside a VirtualHost tag, for the url http://virtualhost/myApp: Directory /usr/local/jakarta-tomcat-4.1.12/webapps/myApp Options Indexes FollowSymLinks DirectoryIndex index.jsp index.html index.htm /Directory JkMount /myApp/*.jsp ajp13 JkMount /myApp/servlet/* ajp13 There definitely is an index.jsp file in that folder, and its a folder that Apache knows about, because it's in the Directory tag, and http://virtualhost/myApp/index.jsp is working on port 80. Apache does not serve index.jsp, nor does it direct requests to Tomcat unless you specifically put index.jsp on the URL. If there's an Apache tag or directive that I'm missing that would change this behavior, I'd love to know what it is, the salespeople here are on my back all the time about not being able to specify the URL without index.jsp on the end. Perhaps putting the JkMounts before the Directory tag would change the behavior. John -Original Message- From: David Wall [mailto:d.wall;computer.org] Sent: Thursday, November 14, 2002 2:03 PM To: Tomcat Users List Subject: Re: Apache Index page jsp and sessionid with JKMount *.jsp I have DirectoryIndex set to index.jsp. My Apache has mod_dir. Calling a directory mapped to Tomcat (such as /myApp) with http://localhost/myApp doesn't return anything, definitely not index.jsp. This is on 4.0.4 and 4.1.12. One problem is that for this to work is that Apache has to see an index.jsp in your myApp directory. Put an empty version of that file (or touch index.jsp if using Unix/Linux) in and then Apache will see that the index file exists and will then attempt to serve it, but then note the .jsp suffix so it then passes it back to Tomcat. David -- 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: Apache Index page jsp and sessionid with JKMount *.jsp
I don't think that's the issue. My httpd.conf has the following, inside a VirtualHost tag, for the url http://virtualhost/myApp: Directory /usr/local/jakarta-tomcat-4.1.12/webapps/myApp Options Indexes FollowSymLinks DirectoryIndex index.jsp index.html index.htm /Directory JkMount /myApp/*.jsp ajp13 JkMount /myApp/servlet/* ajp13 There definitely is an index.jsp file in that folder, and its a folder that Apache knows about, because it's in the Directory tag, and http://virtualhost/myApp/index.jsp is working on port 80. Apache does not serve index.jsp, nor does it direct requests to Tomcat unless you specifically put index.jsp on the URL. If there's an Apache tag or directive that I'm missing that would change this behavior, I'd love to know what it is, the salespeople here are on my back all the time about not being able to specify the URL without index.jsp on the end. Perhaps putting the JkMounts before the Directory tag would change the behavior. Hmmm. I have my DirectoryIndex statement outside of the virtual host entry, but otherwise it looks very similar to what you have and it works fine. One thing, though, is that my Apache directory is one level below the JSPs, so I'd have an entry like Directory /usr/local/jakarta-tomcat-4.1.1.12/webapps This is because the URLs will all have the myApp portion to specify the correct webapp to use. My Options also includes MultiViews Includes along with Indexes and FollowSymLinks, but I'm not an Apache expert by any means... David -- To unsubscribe, e-mail: mailto:tomcat-user-unsubscribe;jakarta.apache.org For additional commands, e-mail: mailto:tomcat-user-help;jakarta.apache.org
Apache Index page jsp and sessionid with JKMount *.jsp
I am trying to set Apache's index file to index.jsp. It is not working. I am using JKmount *.jsp for the dynamic stuff, so for what ever reason, Apache won't server this as the point of entry to our site. We currently use an index.html page to redirect to index.jsp, but want to get rid of that. Any ideas? Using Apache 2.0, ajp13. Tomcat 3.2x Chad -- To unsubscribe, e-mail: mailto:tomcat-user-unsubscribe;jakarta.apache.org For additional commands, e-mail: mailto:tomcat-user-help;jakarta.apache.org
RE: Apache Index page jsp and sessionid with JKMount *.jsp
That's pretty much the solution...this has come up before. By the time JK gets involved, Apache is just about done with the URL...it doesn't perform any rewriting, etc. it's just looking for a match. The elegant solution is probably using mod_rewrite to rewrite requests ending in / to /index.jsp. John -Original Message- From: Chad Cannell [mailto:ccannell;elogex.com] Sent: Wednesday, November 13, 2002 3:45 PM To: Tomcat Users List Subject: Apache Index page jsp and sessionid with JKMount *.jsp I am trying to set Apache's index file to index.jsp. It is not working. I am using JKmount *.jsp for the dynamic stuff, so for what ever reason, Apache won't server this as the point of entry to our site. We currently use an index.html page to redirect to index.jsp, but want to get rid of that. Any ideas? Using Apache 2.0, ajp13. Tomcat 3.2x Chad -- 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: Apache Index page jsp and sessionid with JKMount *.jsp
Use mod_dir in Apache. It is standard. add this directive in you apache conf DirectoryIndex index.jsp index.php index.html index.htm options are listed in order of preference. the directive can go in the main conf or in a Vitual Host Container. See the apache docs for more detail. http://httpd.apache.org/docs-2.0/mod/mod_dir.html#directoryindex On Wednesday 13 November 2002 01:56 pm, Turner, John wrote: That's pretty much the solution...this has come up before. By the time JK gets involved, Apache is just about done with the URL...it doesn't perform any rewriting, etc. it's just looking for a match. The elegant solution is probably using mod_rewrite to rewrite requests ending in / to /index.jsp. John -Original Message- From: Chad Cannell [mailto:ccannell;elogex.com] Sent: Wednesday, November 13, 2002 3:45 PM To: Tomcat Users List Subject: Apache Index page jsp and sessionid with JKMount *.jsp I am trying to set Apache's index file to index.jsp. It is not working. I am using JKmount *.jsp for the dynamic stuff, so for what ever reason, Apache won't server this as the point of entry to our site. We currently use an index.html page to redirect to index.jsp, but want to get rid of that. Any ideas? Using Apache 2.0, ajp13. Tomcat 3.2x Chad -- 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: Apache Index page jsp and sessionid with JKMount *.jsp
As far as I know this does not work. It didn't work for me, and this subject has come up quite a bit in the past couple of months. Adding a DirectoryIndex line was the first thing I tried. John -Original Message- From: shawn [mailto:shawn;wnsi.net] Sent: Wednesday, November 13, 2002 4:23 PM To: Tomcat Users List Subject: Re: Apache Index page jsp and sessionid with JKMount *.jsp Use mod_dir in Apache. It is standard. add this directive in you apache conf DirectoryIndex index.jsp index.php index.html index.htm options are listed in order of preference. the directive can go in the main conf or in a Vitual Host Container. See the apache docs for more detail. http://httpd.apache.org/docs-2.0/mod/mod_dir.html#directoryindex On Wednesday 13 November 2002 01:56 pm, Turner, John wrote: That's pretty much the solution...this has come up before. By the time JK gets involved, Apache is just about done with the URL...it doesn't perform any rewriting, etc. it's just looking for a match. The elegant solution is probably using mod_rewrite to rewrite requests ending in / to /index.jsp. John -Original Message- From: Chad Cannell [mailto:ccannell;elogex.com] Sent: Wednesday, November 13, 2002 3:45 PM To: Tomcat Users List Subject: Apache Index page jsp and sessionid with JKMount *.jsp I am trying to set Apache's index file to index.jsp. It is not working. I am using JKmount *.jsp for the dynamic stuff, so for what ever reason, Apache won't server this as the point of entry to our site. We currently use an index.html page to redirect to index.jsp, but want to get rid of that. Any ideas? Using Apache 2.0, ajp13. Tomcat 3.2x Chad -- 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: Apache Index page jsp and sessionid with JKMount *.jsp
I used Proxy and ReverseProxy on Apache. On tomcat, I specified the jsp in the welcome of web.xml At 12:44 PM 11/13/02, you wrote: I am trying to set Apache's index file to index.jsp. It is not working. -- 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