I have been pounding my head into the wall trying to get isapi_redirect.dll working on IIS 6.0.

There are 3 bugs here with isapi_redirect and its docs as they stand today -- only one directly of Microsoft's making, it appears:

*1) The URI handed to map_uri_to_worker() in jk_isapi_plugin.c always contains the host and port screwing up virtual host-independent URI-to-worker mappings.*

I did a little digging and discovered that this has apparently been broken since revision 1.19 (i.e. 1.18 worked). The apparent fix is as follows:

   --- jk_isapi_plugin.orig.c      2004-02-24 01:45:50.000000000 -0600
   +++ jk_isapi_plugin.c   2004-07-21 12:11:50.000000000 -0500
   @@ -718,14 +718,13 @@
                    jk_log(logger, JK_LOG_DEBUG,
                           "In HttpFilterProc Virtual Host redirection
   of %s\n",
                           snuri);
   -            } else {
   -             strncpy(snuri, uri, sizeof(snuri));
   -           }
   +                worker = map_uri_to_worker(uw_map, snuri, logger);
   +            }
                if (!worker) {
                    jk_log(logger, JK_LOG_DEBUG,
                           "In HttpFilterProc test Default redirection
   of %s\n",
                           uri);
   -                worker = map_uri_to_worker(uw_map, snuri, logger);
   +                worker = map_uri_to_worker(uw_map, uri, logger);
                }

                if (worker) {

I have filed this as bug 30236 <http://issues.apache.org/bugzilla/show_bug.cgi?id=30236>.

Just to add an example:

   /examples/*=ajp13

will no longer work with the current code but

   /fullhostname/examples/*=ajp13

does.

*2) isapi_install.vbs has hard-wired references throughout to "isapi_redirector.dll". Unfortunately, the default name of the DLL and that used throughout all the documentation bundled and otherwise is "isapi_redirect.dll".*

This leads to *very* confusing failures to load the connector into IIS. Once this apparent typo is corrected, this script works great.

I have filed this as bug 30238 <http://issues.apache.org/bugzilla/show_bug.cgi?id=30238>.

*3) Connector documentation is not up-to-date for IIS 6 Changes*

The IIS portion of the Tomcat connector documentation makes no mention of the extra steps required to get the connectors working with IIS 6. These are clearly documented elsewhere on the web (http://www.rit.edu/~ack5504/tomcat-iis6-howto/tomcat-iis6-howto.html <http://www.rit.edu/%7Eack5504/tomcat-iis6-howto/tomcat-iis6-howto.html> amongst other places), so there is little reason not to incorporate this information. Not bundling this information leaves most people attempting this configuration completely lost -- and they just give up.

I have filed this as bug 30239 <http://issues.apache.org/bugzilla/show_bug.cgi?id=30239>.

That's it for the moment....

--
Jess Holle



Reply via email to