Adjusting Coldfusion & ISAPI_Rewrite collaboration

If you have ISAPI_Rewrite3 (Ape) and Coldfusion installed on your server, you may encounter issues with requests to .cfm resources. The problem lies in handler mappings configuration. To resolve it, any handler mappings for *.cfm extension should be mapped to 1\jrun_iis6_wildcard.dll executable (instead of run_iis6.dll).

The following piece of code should be put into the web.config in the root of your site if you are on Windows Server 2008 (the x‘s in bold are machine-specific and must be replaced by proper numbers):

<?xml version="1.0" encoding="UTF-8"?>
<configuration>
  <system.webServer>
    <handlers>
      <remove name="AboMapperCustom-xxxxxxxx" />
      <remove name="AboMapperCustom-xxxxxxxx" />
      <remove name="AboMapperCustom-xxxxxxxx" />
      <remove name="AboMapperCustom-xxxxxxxx" />
      <remove name="AboMapperCustom-xxxxxxxx" />
      <add name="AboMapperCustom-xxxxxxxx" path="*.cfm" verb="*" modules="IsapiModule"
         scriptProcessor="C:\ColdFusion8\runtime\lib\wsconfig\1\jrun_iis6_wildcard.dll"
         resourceType="Unspecified" requireAccess="Script" responseBufferLimit="0" />
      <add name="AboMapperCustom-xxxxxxxx" path="*.cfc" verb="*" modules="IsapiModule"
         scriptProcessor="C:\ColdFusion8\runtime\lib\wsconfig\1\jrun_iis6_wildcard.dll"
         resourceType="Unspecified" requireAccess="Script" responseBufferLimit="0" />
      <add name="AboMapperCustom-xxxxxxxx" path="*.cfml" verb="*" modules="IsapiModule"
         scriptProcessor="C:\ColdFusion8\runtime\lib\wsconfig\1\jrun_iis6_wildcard.dll"
         resourceType="Unspecified" requireAccess="Script" responseBufferLimit="0" />
      <add name="AboMapperCustom-xxxxxxxx" path="*.cfr" verb="*" modules="IsapiModule"
         scriptProcessor="C:\ColdFusion8\runtime\lib\wsconfig\1\jrun_iis6_wildcard.dll"
         resourceType="Unspecified" requireAccess="Script" responseBufferLimit="0" />
      <add name="AboMapperCustom-xxxxxxxx" path="*.cfswf" verb="*" modules="IsapiModule"
         scriptProcessor="C:\ColdFusion8\runtime\lib\wsconfig\1\jrun_iis6_wildcard.dll"
         resourceType="Unspecified" requireAccess="Script" responseBufferLimit="0" />
    </handlers>
  </system.webServer>
</configuration>
 

Regards,
Anton, Helicon Tech Team

This entry was posted in Helicon Ape, ISAPI_Rewrite and tagged . Bookmark the permalink.

2 Responses to Adjusting Coldfusion & ISAPI_Rewrite collaboration

  1. Блог о путешествиях says:

    Thx for this great information that you are sharing with us!!!

  2. Anthony says:

    Does it apply to Coldfusion 9 and IIS6 or just IIS7, since you mention Server 2008.

    Regards