Copy link to clipboard
Copied
Configuration: Windows 2012 R2, ColdFusion 11.0.05.293506
Our web site is configured with index.cfm as a default document. We have configured a directory to use Basic Authentication. If the URL is extensionless (/csts_test/) IIS authenticates the user but the IsapiMidule cfmHandler errors out. If the URL has an extension (/csts_test/index.cfm) or if the default document is a static page (HTML, etc.) IIS authenticates the user and the page is returned to the browser successfully. This appears to be similar to forum post Default document not being processed when not included in URL but no resolution is documented. Below is data from the isapi_redirect.log (verbose/debug) for the failure.
Does anyone know of a way to make the IIS connector honor a CFM file as the Default Document if Basic Authentication is enabled? Is this a bug in the connector?
isapi_redirect.log
[Fri Jul 17 12:12:08.083 2015] [8028:3128] [debug] handle_notify_event::jk_isapi_plugin.c (2177): Filter started
[Fri Jul 17 12:12:08.083 2015] [8028:3128] [debug] map_uri_to_worker_ext::jk_uri_worker_map.c (1170): Attempting to map URI '/nrctrkdev.domain/csts_test/' from 40 maps
[Fri Jul 17 12:12:08.083 2015] [8028:3128] [debug] find_match::jk_uri_worker_map.c (984): Attempting to map context URI '/flashservices/gateway/*=nrctrkdev' source 'uriworkermap'
[Fri Jul 17 12:12:08.083 2015] [8028:3128] [debug] find_match::jk_uri_worker_map.c (984): Attempting to map context URI '/cfform-internal/*=nrctrkdev' source 'uriworkermap'
[Fri Jul 17 12:12:08.083 2015] [8028:3128] [debug] find_match::jk_uri_worker_map.c (984): Attempting to map context URI '/flex-internal/*=nrctrkdev' source 'uriworkermap'
[Fri Jul 17 12:12:08.099 2015] [8028:3128] [debug] find_match::jk_uri_worker_map.c (984): Attempting to map context URI '/CFFormGateway/*=nrctrkdev' source 'uriworkermap'
[Fri Jul 17 12:12:08.100 2015] [8028:3128] [debug] find_match::jk_uri_worker_map.c (984): Attempting to map context URI '/cffileservlet/*=nrctrkdev' source 'uriworkermap'
[Fri Jul 17 12:12:08.101 2015] [8028:3128] [debug] find_match::jk_uri_worker_map.c (984): Attempting to map context URI '/cfformgateway/*=nrctrkdev' source 'uriworkermap'
[Fri Jul 17 12:12:08.102 2015] [8028:3128] [debug] find_match::jk_uri_worker_map.c (984): Attempting to map context URI '/CFFileServlet/*=nrctrkdev' source 'uriworkermap'
[Fri Jul 17 12:12:08.102 2015] [8028:3128] [debug] find_match::jk_uri_worker_map.c (984): Attempting to map context URI '/flex2gateway/*=nrctrkdev' source 'uriworkermap'
[Fri Jul 17 12:12:08.102 2015] [8028:3128] [debug] find_match::jk_uri_worker_map.c (984): Attempting to map context URI '/*.Cfml/*=nrctrkdev' source 'uriworkermap'
[Fri Jul 17 12:12:08.102 2015] [8028:3128] [debug] find_match::jk_uri_worker_map.c (984): Attempting to map context URI '/*.cfml/*=nrctrkdev' source 'uriworkermap'
[Fri Jul 17 12:12:08.102 2015] [8028:3128] [debug] find_match::jk_uri_worker_map.c (984): Attempting to map context URI '/*.CFML/*=nrctrkdev' source 'uriworkermap'
[Fri Jul 17 12:12:08.102 2015] [8028:3128] [debug] find_match::jk_uri_worker_map.c (984): Attempting to map context URI '/*.CFM/*=nrctrkdev' source 'uriworkermap'
[Fri Jul 17 12:12:08.102 2015] [8028:3128] [debug] find_match::jk_uri_worker_map.c (984): Attempting to map context URI '/*.cfm/*=nrctrkdev' source 'uriworkermap'
[Fri Jul 17 12:12:08.102 2015] [8028:3128] [debug] find_match::jk_uri_worker_map.c (984): Attempting to map context URI '/*.cfc/*=nrctrkdev' source 'uriworkermap'
[Fri Jul 17 12:12:08.102 2015] [8028:3128] [debug] find_match::jk_uri_worker_map.c (984): Attempting to map context URI '/*.CFC/*=nrctrkdev' source 'uriworkermap'
[Fri Jul 17 12:12:08.102 2015] [8028:3128] [debug] find_match::jk_uri_worker_map.c (984): Attempting to map context URI '/*.Cfc/*=nrctrkdev' source 'uriworkermap'
[Fri Jul 17 12:12:08.102 2015] [8028:3128] [debug] find_match::jk_uri_worker_map.c (984): Attempting to map context URI '/*.Cfm/*=nrctrkdev' source 'uriworkermap'
[Fri Jul 17 12:12:08.102 2015] [8028:3128] [debug] find_match::jk_uri_worker_map.c (984): Attempting to map context URI '/rest/*=nrctrkdev' source 'uriworkermap'
[Fri Jul 17 12:12:08.102 2015] [8028:3128] [debug] find_match::jk_uri_worker_map.c (984): Attempting to map context URI '/flex2gateway=nrctrkdev' source 'uriworkermap'
[Fri Jul 17 12:12:08.102 2015] [8028:3128] [debug] find_match::jk_uri_worker_map.c (984): Attempting to map context URI '/*.hbmxml=nrctrkdev' source 'uriworkermap'
[Fri Jul 17 12:12:08.102 2015] [8028:3128] [debug] find_match::jk_uri_worker_map.c (984): Attempting to map context URI '/*.cfswf=nrctrkdev' source 'uriworkermap'
[Fri Jul 17 12:12:08.118 2015] [8028:3128] [debug] find_match::jk_uri_worker_map.c (984): Attempting to map context URI '/*.Cfswf=nrctrkdev' source 'uriworkermap'
[Fri Jul 17 12:12:08.118 2015] [8028:3128] [debug] find_match::jk_uri_worker_map.c (984): Attempting to map context URI '/*.CFSWF=nrctrkdev' source 'uriworkermap'
[Fri Jul 17 12:12:08.118 2015] [8028:3128] [debug] find_match::jk_uri_worker_map.c (984): Attempting to map context URI '/*.mxml=nrctrkdev' source 'uriworkermap'
[Fri Jul 17 12:12:08.118 2015] [8028:3128] [debug] find_match::jk_uri_worker_map.c (984): Attempting to map context URI '/*.CFML=nrctrkdev' source 'uriworkermap'
[Fri Jul 17 12:12:08.118 2015] [8028:3128] [debug] find_match::jk_uri_worker_map.c (984): Attempting to map context URI '/*.Cfml=nrctrkdev' source 'uriworkermap'
[Fri Jul 17 12:12:08.118 2015] [8028:3128] [debug] find_match::jk_uri_worker_map.c (984): Attempting to map context URI '/*.cfml=nrctrkdev' source 'uriworkermap'
[Fri Jul 17 12:12:08.118 2015] [8028:3128] [debug] find_match::jk_uri_worker_map.c (984): Attempting to map context URI '/*.cfm=nrctrkdev' source 'uriworkermap'
[Fri Jul 17 12:12:08.118 2015] [8028:3128] [debug] find_match::jk_uri_worker_map.c (984): Attempting to map context URI '/*.Cfm=nrctrkdev' source 'uriworkermap'
[Fri Jul 17 12:12:08.118 2015] [8028:3128] [debug] find_match::jk_uri_worker_map.c (984): Attempting to map context URI '/*.cfc=nrctrkdev' source 'uriworkermap'
[Fri Jul 17 12:12:08.118 2015] [8028:3128] [debug] find_match::jk_uri_worker_map.c (984): Attempting to map context URI '/*.CFC=nrctrkdev' source 'uriworkermap'
[Fri Jul 17 12:12:08.118 2015] [8028:3128] [debug] find_match::jk_uri_worker_map.c (984): Attempting to map context URI '/*.CFR=nrctrkdev' source 'uriworkermap'
[Fri Jul 17 12:12:08.118 2015] [8028:3128] [debug] find_match::jk_uri_worker_map.c (984): Attempting to map context URI '/*.Cfr=nrctrkdev' source 'uriworkermap'
[Fri Jul 17 12:12:08.118 2015] [8028:3128] [debug] find_match::jk_uri_worker_map.c (984): Attempting to map context URI '/*.Cfc=nrctrkdev' source 'uriworkermap'
[Fri Jul 17 12:12:08.134 2015] [8028:3128] [debug] find_match::jk_uri_worker_map.c (984): Attempting to map context URI '/*.swc=nrctrkdev' source 'uriworkermap'
[Fri Jul 17 12:12:08.134 2015] [8028:3128] [debug] find_match::jk_uri_worker_map.c (984): Attempting to map context URI '/*.CFM=nrctrkdev' source 'uriworkermap'
[Fri Jul 17 12:12:08.134 2015] [8028:3128] [debug] find_match::jk_uri_worker_map.c (984): Attempting to map context URI '/*.sws=nrctrkdev' source 'uriworkermap'
[Fri Jul 17 12:12:08.134 2015] [8028:3128] [debug] find_match::jk_uri_worker_map.c (984): Attempting to map context URI '/*.jsp=nrctrkdev' source 'uriworkermap'
[Fri Jul 17 12:12:08.134 2015] [8028:3128] [debug] find_match::jk_uri_worker_map.c (984): Attempting to map context URI '/*.cfr=nrctrkdev' source 'uriworkermap'
[Fri Jul 17 12:12:08.134 2015] [8028:3128] [debug] find_match::jk_uri_worker_map.c (984): Attempting to map context URI '/*.as=nrctrkdev' source 'uriworkermap'
[Fri Jul 17 12:12:08.134 2015] [8028:3128] [debug] find_match::jk_uri_worker_map.c (984): Attempting to map context URI '/flashservices/gateway/*=nrctrkdev' source 'uriworkermap'
[Fri Jul 17 12:12:08.134 2015] [8028:3128] [debug] find_match::jk_uri_worker_map.c (984): Attempting to map context URI '/cfform-internal/*=nrctrkdev' source 'uriworkermap'
[Fri Jul 17 12:12:08.134 2015] [8028:3128] [debug] find_match::jk_uri_worker_map.c (984): Attempting to map context URI '/flex-internal/*=nrctrkdev' source 'uriworkermap'
[Fri Jul 17 12:12:08.134 2015] [8028:3128] [debug] find_match::jk_uri_worker_map.c (984): Attempting to map context URI '/CFFormGateway/*=nrctrkdev' source 'uriworkermap'
[Fri Jul 17 12:12:08.134 2015] [8028:3128] [debug] find_match::jk_uri_worker_map.c (984): Attempting to map context URI '/cffileservlet/*=nrctrkdev' source 'uriworkermap'
[Fri Jul 17 12:12:08.134 2015] [8028:3128] [debug] find_match::jk_uri_worker_map.c (984): Attempting to map context URI '/cfformgateway/*=nrctrkdev' source 'uriworkermap'
[Fri Jul 17 12:12:08.134 2015] [8028:3128] [debug] find_match::jk_uri_worker_map.c (984): Attempting to map context URI '/CFFileServlet/*=nrctrkdev' source 'uriworkermap'
[Fri Jul 17 12:12:08.134 2015] [8028:3128] [debug] find_match::jk_uri_worker_map.c (984): Attempting to map context URI '/flex2gateway/*=nrctrkdev' source 'uriworkermap'
[Fri Jul 17 12:12:08.149 2015] [8028:3128] [debug] find_match::jk_uri_worker_map.c (984): Attempting to map context URI '/*.Cfml/*=nrctrkdev' source 'uriworkermap'
[Fri Jul 17 12:12:08.149 2015] [8028:3128] [debug] find_match::jk_uri_worker_map.c (984): Attempting to map context URI '/*.cfml/*=nrctrkdev' source 'uriworkermap'
[Fri Jul 17 12:12:08.149 2015] [8028:3128] [debug] find_match::jk_uri_worker_map.c (984): Attempting to map context URI '/*.CFML/*=nrctrkdev' source 'uriworkermap'
[Fri Jul 17 12:12:08.149 2015] [8028:3128] [debug] find_match::jk_uri_worker_map.c (984): Attempting to map context URI '/*.CFM/*=nrctrkdev' source 'uriworkermap'
[Fri Jul 17 12:12:08.149 2015] [8028:3128] [debug] find_match::jk_uri_worker_map.c (984): Attempting to map context URI '/*.cfm/*=nrctrkdev' source 'uriworkermap'
[Fri Jul 17 12:12:08.149 2015] [8028:3128] [debug] find_match::jk_uri_worker_map.c (984): Attempting to map context URI '/*.cfc/*=nrctrkdev' source 'uriworkermap'
[Fri Jul 17 12:12:08.149 2015] [8028:3128] [debug] find_match::jk_uri_worker_map.c (984): Attempting to map context URI '/*.CFC/*=nrctrkdev' source 'uriworkermap'
[Fri Jul 17 12:12:08.149 2015] [8028:3128] [debug] find_match::jk_uri_worker_map.c (984): Attempting to map context URI '/*.Cfc/*=nrctrkdev' source 'uriworkermap'
[Fri Jul 17 12:12:08.149 2015] [8028:3128] [debug] find_match::jk_uri_worker_map.c (984): Attempting to map context URI '/*.Cfm/*=nrctrkdev' source 'uriworkermap'
[Fri Jul 17 12:12:08.149 2015] [8028:3128] [debug] find_match::jk_uri_worker_map.c (984): Attempting to map context URI '/rest/*=nrctrkdev' source 'uriworkermap'
[Fri Jul 17 12:12:08.149 2015] [8028:3128] [debug] find_match::jk_uri_worker_map.c (984): Attempting to map context URI '/flex2gateway=nrctrkdev' source 'uriworkermap'
[Fri Jul 17 12:12:08.149 2015] [8028:3128] [debug] find_match::jk_uri_worker_map.c (984): Attempting to map context URI '/*.hbmxml=nrctrkdev' source 'uriworkermap'
[Fri Jul 17 12:12:08.149 2015] [8028:3128] [debug] find_match::jk_uri_worker_map.c (984): Attempting to map context URI '/*.cfswf=nrctrkdev' source 'uriworkermap'
[Fri Jul 17 12:12:08.149 2015] [8028:3128] [debug] find_match::jk_uri_worker_map.c (984): Attempting to map context URI '/*.Cfswf=nrctrkdev' source 'uriworkermap'
[Fri Jul 17 12:12:08.149 2015] [8028:3128] [debug] find_match::jk_uri_worker_map.c (984): Attempting to map context URI '/*.CFSWF=nrctrkdev' source 'uriworkermap'
[Fri Jul 17 12:12:08.149 2015] [8028:3128] [debug] find_match::jk_uri_worker_map.c (984): Attempting to map context URI '/*.mxml=nrctrkdev' source 'uriworkermap'
[Fri Jul 17 12:12:08.165 2015] [8028:3128] [debug] find_match::jk_uri_worker_map.c (984): Attempting to map context URI '/*.CFML=nrctrkdev' source 'uriworkermap'
[Fri Jul 17 12:12:08.165 2015] [8028:3128] [debug] find_match::jk_uri_worker_map.c (984): Attempting to map context URI '/*.Cfml=nrctrkdev' source 'uriworkermap'
[Fri Jul 17 12:12:08.165 2015] [8028:3128] [debug] find_match::jk_uri_worker_map.c (984): Attempting to map context URI '/*.cfml=nrctrkdev' source 'uriworkermap'
[Fri Jul 17 12:12:08.165 2015] [8028:3128] [debug] find_match::jk_uri_worker_map.c (984): Attempting to map context URI '/*.cfm=nrctrkdev' source 'uriworkermap'
[Fri Jul 17 12:12:08.165 2015] [8028:3128] [debug] find_match::jk_uri_worker_map.c (984): Attempting to map context URI '/*.Cfm=nrctrkdev' source 'uriworkermap'
[Fri Jul 17 12:12:08.165 2015] [8028:3128] [debug] find_match::jk_uri_worker_map.c (984): Attempting to map context URI '/*.cfc=nrctrkdev' source 'uriworkermap'
[Fri Jul 17 12:12:08.165 2015] [8028:3128] [debug] find_match::jk_uri_worker_map.c (984): Attempting to map context URI '/*.CFC=nrctrkdev' source 'uriworkermap'
[Fri Jul 17 12:12:08.165 2015] [8028:3128] [debug] find_match::jk_uri_worker_map.c (984): Attempting to map context URI '/*.CFR=nrctrkdev' source 'uriworkermap'
[Fri Jul 17 12:12:08.165 2015] [8028:3128] [debug] find_match::jk_uri_worker_map.c (984): Attempting to map context URI '/*.Cfr=nrctrkdev' source 'uriworkermap'
[Fri Jul 17 12:12:08.180 2015] [8028:3128] [debug] find_match::jk_uri_worker_map.c (984): Attempting to map context URI '/*.Cfc=nrctrkdev' source 'uriworkermap'
[Fri Jul 17 12:12:08.180 2015] [8028:3128] [debug] find_match::jk_uri_worker_map.c (984): Attempting to map context URI '/*.swc=nrctrkdev' source 'uriworkermap'
[Fri Jul 17 12:12:08.180 2015] [8028:3128] [debug] find_match::jk_uri_worker_map.c (984): Attempting to map context URI '/*.CFM=nrctrkdev' source 'uriworkermap'
[Fri Jul 17 12:12:08.180 2015] [8028:3128] [debug] find_match::jk_uri_worker_map.c (984): Attempting to map context URI '/*.sws=nrctrkdev' source 'uriworkermap'
[Fri Jul 17 12:12:08.180 2015] [8028:3128] [debug] find_match::jk_uri_worker_map.c (984): Attempting to map context URI '/*.jsp=nrctrkdev' source 'uriworkermap'
[Fri Jul 17 12:12:08.180 2015] [8028:3128] [debug] find_match::jk_uri_worker_map.c (984): Attempting to map context URI '/*.cfr=nrctrkdev' source 'uriworkermap'
[Fri Jul 17 12:12:08.180 2015] [8028:3128] [debug] find_match::jk_uri_worker_map.c (984): Attempting to map context URI '/*.as=nrctrkdev' source 'uriworkermap'
[Fri Jul 17 12:12:08.180 2015] [8028:3128] [debug] handle_notify_event::jk_isapi_plugin.c (2402): [/csts_test/]
Both Basic Authentication and Windows Authentication require that the directory with the isapi_redirect.dll have permissions set such that the authenticating user has read/execute. This resolves the issue.
Copy link to clipboard
Copied
Additional information: A check of the IIS logs when a URL with extension is submitted, the IIS logs show no logged in user. IF the submitted URL is a static page however the user login is captured. See IIS log snip below.
2015-07-17 20:06:33 128.219.176.134 GET /csts_test/index.cfm - 443 - 128.219.176.134 Mozilla/4.0+(compatible;+MSIE+7.0;+Windows+NT+6.3;+WOW64;+Trident/7.0;+.NET4.0E;+.NET4.0C) - 200 0 0 18154 413 562
2015-07-17 20:06:40 128.219.176.134 GET /csts_test/index.cfm - 443 - 128.219.176.134 Mozilla/4.0+(compatible;+MSIE+7.0;+Windows+NT+6.3;+WOW64;+Trident/7.0;+.NET4.0E;+.NET4.0C) - 200 0 0 18154 413 296
2015-07-17 20:14:13 128.219.176.134 GET /csts_test/index.html - 443 - 128.219.176.134 Mozilla/4.0+(compatible;+MSIE+7.0;+Windows+NT+6.3;+WOW64;+Trident/7.0;+.NET4.0E;+.NET4.0C) - 401 2 5 6277 375 0
2015-07-17 20:14:22 128.219.176.134 GET /csts_test/index.html - 443 username 128.219.176.134 Mozilla/4.0+(compatible;+MSIE+7.0;+Windows+NT+6.3;+WOW64;+Trident/7.0;+.NET4.0E;+.NET4.0C) - 200 0 0 2101 414 31
Copy link to clipboard
Copied
Both Basic Authentication and Windows Authentication require that the directory with the isapi_redirect.dll have permissions set such that the authenticating user has read/execute. This resolves the issue.