404, onMissingTemplate.cfm and IIS errors

151 views
Skip to first unread message

Brian Lang

unread,
Nov 13, 2012, 12:59:08 PM11/13/12
to cfwh...@googlegroups.com
My Production server is running IIS 7.5 and is using web.config with rewriting on. IIS is adding it's own error message above my onMissingTemplate.cfm content.

When I look at the source code of the 404 page (as served to the web browser), I can see that it has TWO full <html><head></head><body></body></html> constructs. IIS appears to be adding its own 404 file, and then ColdFusion is jumping in and serving its 404 page as well.

Anyone got any ideas on how I can fix this? I'm thinking I need to remove the 404 setting in IIS, but that doesn't seem quite right.

Renand Baur

unread,
Nov 14, 2012, 1:26:41 AM11/14/12
to cfwh...@googlegroups.com
Hello
I use this rule in web.config

<system.webServer>
<httpErrors existingResponse="PassThrough" />
</system.webServer>


--
You received this message because you are subscribed to the Google Groups "ColdFusion on Wheels" group.
To view this discussion on the web visit https://groups.google.com/d/msg/cfwheels/-/3pXO9oFbYM0J.
To post to this group, send email to cfwh...@googlegroups.com.
To unsubscribe from this group, send email to cfwheels+u...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/cfwheels?hl=en.

Brian Lang

unread,
Nov 14, 2012, 1:09:01 PM11/14/12
to cfwh...@googlegroups.com
Worked perfectly.

Thanks.
Reply all
Reply to author
Forward
0 new messages