Re: [mod_jk] JkStripSession directive
Christopher Schultz schrieb: > Rainer and Mladen, > > Looks like everything is working as expected. > > This seems much nicer than my old hack of using mod_rewrite. Perhaps > this is actually more of a hack ;) It's not meant to replace mod_rewrite, which of course is much more powerful. But this special use case seems to be relatively common and it makes it easier to synchronize JkMounts with the rules when to strip the id, because mod_jk knows it already. Good to know it works for you and thanks for testing! Regards, Rainer - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: [mod_jk] JkStripSession directive
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Rainer and Mladen, Rainer Jung wrote: > Mladen Turk wrote: >> However, you are right, I made a bug in that code, it should trip >> the session from r->filename not r->uri. Will be fixed in the next >> tryout. > > ... which is now available for testing under the same URL. Looks like everything is working as expected. This seems much nicer than my old hack of using mod_rewrite. Perhaps this is actually more of a hack ;) Thanks for the new feature, guys! - -chris -BEGIN PGP SIGNATURE- Version: GnuPG v1.4.6 (MingW32) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org iD8DBQFF44EX9CaO5/Lv0PARApjDAJ0UeRalx6IsM0HDuXI6v+FUSsnYcwCgsWfZ 2nzLxqmiyLfFm/TLouKYMio= =lIdC -END PGP SIGNATURE- - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: [mod_jk] JkStripSession directive
Mladen Turk wrote: Right, the ;jsessionid=... will be shown in the logs. However, you are right, I made a bug in that code, it should trip the session from r->filename not r->uri. Will be fixed in the next tryout. ... which is now available for testing under the same URL. Since this change was Apache only, docs and Windows binaries didn't change. The old tarball has been deleted and only the new one is on people.apache.org. Thanks to Christopher for testing and reporting, and of course to Mladen for fixing. Regards, Rainer - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: [mod_jk] JkStripSession directive
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Mladen, Mladen Turk wrote: > Right, the ;jsessionid=... will be shown in the logs. > > However, you are right, I made a bug in that code, it should > trip the session from r->filename not r->uri. > Will be fixed in the next tryout. Sweet. When should I check back for an update? - -chris -BEGIN PGP SIGNATURE- Version: GnuPG v1.4.6 (MingW32) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org iD8DBQFF4zoA9CaO5/Lv0PARAoo0AKCxf4a19ougghcNvAq0FU6fDGNakACfVMQu j6AmFloB2lZD0wk08hy+RRc= =AWdv -END PGP SIGNATURE- - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: [mod_jk] JkStripSession directive
Christopher Schultz wrote: JkStripSession On JkMount ... [many of these] So far so good :) 192.168.1.47 - - [26/Feb/2007:12:59:06 -0500] "GET /diagnosis/images/flags/es.png;jsessionid=A17B19517B58B2C06D8B7120D3B8503C HTTP/1.1" 404 1766 Right, the ;jsessionid=... will be shown in the logs. However, you are right, I made a bug in that code, it should trip the session from r->filename not r->uri. Will be fixed in the next tryout. Regards, Mladen. - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
[mod_jk] JkStripSession directive
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 All, I decided to test out the newly available mod_jk 1.2.21 pre-release and the JkStripSession directive in order to remove mod_rewrite from my configuration. It does not appear to be working using my configuration. I'm using Apache httpd 2.0.58 with the pre-release mod_jk 1.2.21. In my Apache httpd configuration, I have: LoadModule ... JkWorkersFile ... The above is outside of my VirtualHost. Also: JkStripSession On JkMount ... [many of these] These are inside my VirtualHost. In my mod_jk.log, I can see: [Mon Feb 26 12:59:06 2007] [6999:34480] [debug] jk_map_to_storage::mod_jk.c (3025): removing session identifier [;jsessionid=A17B19517B58B2C06D8B7120D3B8503C] for non servlet url [/diagnosis/images/flags/en.png;jsessionid=A17B19517B58B2C06D8B7120D3B8503C] [Mon Feb 26 12:59:06 2007] [6999:34480] [debug] map_uri_to_worker::jk_uri_worker_map.c (589): Attempting to map URI '/diagnosis/errors/not_found.html' from 28 maps But I can still see the attempt to access the file in Apache's access log: 192.168.1.47 - - [26/Feb/2007:12:59:06 -0500] "GET /diagnosis/images/flags/es.png;jsessionid=A17B19517B58B2C06D8B7120D3B8503C HTTP/1.1" 404 1766 Now, Apache httpd might be logging the request before mod_jk sees if, in which case the jsessionid in the URL is no indication of mod_jk's behavior. If I attempt to use the URI without the session id (that mod_jk has appeared to correctly identify: ;jsessionid=A17B19517B58B2C06D8B7120D3B8503C), Apache serves the request as expected. Any ideas? - -chris -BEGIN PGP SIGNATURE- Version: GnuPG v1.4.6 (MingW32) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org iD8DBQFF4yH19CaO5/Lv0PARAouDAJ4736bY2UA6cMTPAccQTb+FdXzVmgCeJMLA 0+R1IoDfqQ6WotGZrvuiwS0= =35xc -END PGP SIGNATURE- - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]