You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tomcat.apache.org by "Jay Freeman (saurik)" <sa...@saurik.com> on 2000/07/02 21:20:35 UTC
Simple mod_jk & Apache Auth & DirectoryIndex Patch
This rather simple patch gets mod_jk working with Apaches authorization
system, as well as supporting things like DirectoryIndex. General problem
being that if mod_jk tells Apache it did the filename-to-uri conversion
Apache doesnt bother. Along with a few well built <Host> server.xml
elements and a JkMount /*.jsp ajp13, this makes JSP with Tomcat and mod_jk
rather transparent.
diff -u -r1.7 mod_jk.c
--- mod_jk.c 2000/06/30 08:10:46 1.7
+++ mod_jk.c 2000/07/02 18:51:42
@@ -882,7 +882,6 @@
if(worker) {
r->handler = ap_pstrdup(r->pool, JK_HANDLER);
ap_table_setn(r->notes, JK_WORKER_ID, worker);
- return OK;
}
}
}
Personally, I still cant get anything working without removing those
WAS_BORN_BY_APACHE lines, so that patch doesnt actually work for me. This
is what I am using:
diff -u -r1.7 mod_jk.c
--- mod_jk.c 2000/06/30 08:10:46 1.7
+++ mod_jk.c 2000/07/02 18:55:21
@@ -850,14 +850,10 @@
if(map_alloc(&init_map)) {
if(map_read_properties(init_map, conf->worker_file)) {
- if(!env) {
putenv("WAS_BORN_BY_APACHE=true");
- return;
- } else {
if(wc_open(init_map, conf->log)) {
return;
}
- }
}
}
@@ -882,7 +878,6 @@
if(worker) {
r->handler = ap_pstrdup(r->pool, JK_HANDLER);
ap_table_setn(r->notes, JK_WORKER_ID, worker);
- return OK;
}
}
}
Sincerely,
Jay Freeman (saurik)
saurik@saurik.com