Return-Path: Delivered-To: apmail-jakarta-tomcat-dev-archive@apache.org Received: (qmail 32581 invoked from network); 23 Jul 2002 06:30:46 -0000 Received: from unknown (HELO nagoya.betaversion.org) (192.18.49.131) by daedalus.apache.org with SMTP; 23 Jul 2002 06:30:46 -0000 Received: (qmail 4114 invoked by uid 97); 23 Jul 2002 06:31:07 -0000 Delivered-To: qmlist-jakarta-archive-tomcat-dev@jakarta.apache.org Received: (qmail 4073 invoked by uid 97); 23 Jul 2002 06:31:06 -0000 Mailing-List: contact tomcat-dev-help@jakarta.apache.org; run by ezmlm Precedence: bulk List-Unsubscribe: List-Subscribe: List-Help: List-Post: List-Id: "Tomcat Developers List" Reply-To: "Tomcat Developers List" Delivered-To: mailing list tomcat-dev@jakarta.apache.org Received: (qmail 4061 invoked by uid 98); 23 Jul 2002 06:31:06 -0000 X-Antivirus: nagoya (v4198 created Apr 24 2002) To: Tomcat Developers List Subject: Re: cvs commit: jakarta-tomcat-connectors/jk/native/apache-2.0 mod_jk.c Message-ID: <1027406028.3d3cf8ccea6ca@imp.rexursive.com> Date: Tue, 23 Jul 2002 16:33:48 +1000 (EST) From: Bojan Smojver References: In-Reply-To: MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 8bit User-Agent: IMP/PHP IMAP webmail program 2.2.7 X-Originating-IP: 203.53.38.230 X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N Quoting costinm@covalent.net: > It's jk_translate who decides if a request is to be handled by > jk ( by mapping it to a uriEnv ). > > You can add a test for r->handler==DIR_MAGIC_TYPE, but don't assume > any uriEnv is set. Actually, r->handler is always NULL in jk_translate(). At least in mod_jk 1.2.0 (but I'm suspecting that would be the case in mod_jk2 as well, because it's Apache that determines that). So, adding the test wouldn't do anything. If DirectoryIndex is not used, by the time jk_handler() is reached with DIR_MAGIC_TYPE, we're out of mod_dir. If DirectoryIndex is used, then we end up in jk_handler() much sooner, by an explicit call from within mod_dir. That's, of course, when a static file exists. In none of the cases is r->handler set while in jk_translate(). So, for now, I think the only option is to rely on DIR_MAGIC_TYPE test in jk_handler(). How's that going to work in mod_jk2, I have no idea... Hopefully, Mark will do a few tests and then we'll know more. Bojan -- To unsubscribe, e-mail: For additional commands, e-mail: