tomcat-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From GOMEZ Henri <hgo...@slib.fr>
Subject RE: Patch for mod_jk and Apache 2.0
Date Thu, 06 Sep 2001 07:38:44 GMT
Thanks a log Ryan and Will :)

-
Henri Gomez                 ___[_]____
EMAIL : hgomez@slib.fr        (. .)                     
PGP KEY : 697ECEDD    ...oOOo..(_)..oOOo...
PGP Fingerprint : 9DF8 1EA8 ED53 2F39 DC9B 904A 364F 80E6 



>-----Original Message-----
>From: Ryan Bloom [mailto:rbb@covalent.net]
>Sent: Thursday, September 06, 2001 2:22 AM
>To: tomcat-dev@jakarta.apache.org
>Subject: Patch for mod_jk and Apache 2.0
>
>
>
>This patch allows mod_jk to successfully serve pages against Apache 2.0
>and Tomcat 4.0.  This is required after the changes to 
>abstract out location
>and directory walks from the core request processing.  This 
>was created by
>Will Rowe and myself.
>
>Ryan
>
>Index: mod_jk.c
>===================================================================
>RCS file: 
>/home/cvspublic/jakarta-tomcat-connectors/jk/native/apache-2.0/
>mod_jk.c,v
>retrieving revision 1.18
>diff -u -d -b -w -u -r1.18 mod_jk.c
>--- mod_jk.c	2001/09/04 10:57:03	1.18
>+++ mod_jk.c	2001/09/06 00:17:28
>@@ -1333,13 +1333,22 @@
>     return DECLINED;
> }
> 
>+static int jk_map_to_storage(request_rec *r)
>+{
>+    if (apr_table_get(r->notes, JK_WORKER_ID)) {
>+        r->filename = apr_filename_of_pathname(r->uri);
>+        return OK;
>+    }
>+    return DECLINED;
>+}
>+
> static void jk_register_hooks(apr_pool_t *p)
> {
>     ap_hook_handler(jk_handler, NULL, NULL, APR_HOOK_MIDDLE);
>     ap_hook_post_config(jk_post_config,NULL,NULL,APR_HOOK_MIDDLE);
>     ap_hook_child_init(jk_child_init,NULL,NULL,APR_HOOK_MIDDLE);
>     ap_hook_translate_name(jk_translate,NULL,NULL,APR_HOOK_FIRST);
>-
>+    ap_hook_map_to_storage(jk_map_to_storage, NULL, NULL, 
>APR_HOOK_MIDDLE);
> }
> 
> module AP_MODULE_DECLARE_DATA jk_module =
>
>
>______________________________________________________________
>Ryan Bloom				rbb@apache.org
>Covalent Technologies			rbb@covalent.net
>--------------------------------------------------------------
>
>
>

Mime
View raw message