Quantcast
Channel: Adobe Community: Message List - ColdFusion
Viewing all articles
Browse latest Browse all 21760

Re: CF10 and IIS 7.5 - cfheader in 404 custom error handler not working correctly

$
0
0

That didn't solve it for me. Turning on detailed error pages for a 404 error (that is not a CF file) will cause an IIS detailed error page to show.

 

My workaround is this (404.cfm)

 

<cfsetting enableCFoutputOnly="true">

<cfheader statuscode="404" statustext="Not Found">

<cfheader name="Connection" value="Close">

 

<cfsavecontent variable="errorPage">

<cfoutput>

<p>Put your error page in here</p>

</cfoutput>

</cfsavecontent>

 

<cfcontent reset="Yes" type="text/html">

<cfheader name="Content-Length" value="#Len(errorPage)#">

<cfoutput>#errorPage#</cfoutput>

 

You can also refer to the StackOverflow page for this bug:

 

http://stackoverflow.com/questions/15125471/problems-handling-404-erro rs-in-coldfusion-10-on-win2k8-r2-x64


Viewing all articles
Browse latest Browse all 21760

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>