Attention! Helicon Tech Blog has moved to www.helicontech.com/articles/

Thursday, February 18, 2010

Titbits: 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:

<?xml version="1.0" encoding="UTF-8"?>
 <configuration>
  <system.webServer>
   <handlers>
    <remove name="AboMapperCustom-82624719" />
    <remove name="AboMapperCustom-82624718" />
    <remove name="AboMapperCustom-82624716" />
    <remove name="AboMapperCustom-82624717" />
    <remove name="AboMapperCustom-82624715" />
    <add name="AboMapperCustom-82624715" 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-82624717" 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-82624716" 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-82624718" 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-82624719" 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>
 

Regards,
Anton, Helicon Tech Team

No comments:

Post a Comment