Solved

Custom Coldfusion 404 error template per website, IIS7

Posted on 2013-12-11
1
578 Views
Last Modified: 2013-12-12
I have a Windows 2008 server running IIS 7 & Coldfusion 9.0.2 multi instance. I have 3 separate Coldfusion instances, one website per instance. I created unique 404 error pages (404error.cfm) for each website to include that website's header/footer and put the files in their website's root directory. The IIS error page configuration does not appear to be working as I thought it should.

I go into IIS, siteA, error pages, open Edit Custom Error Page for the 404 error, check off Execute a URL on this site. For the URL I enter /404error.cfm. In the featured Settings it doesn't matter which of the 3 items I select. What happens is it runs 404error.cfm at the COLDFUSION ROOT level (JRun4\servers\cfusion\cfusion-ear\cfusion-war\404error.cfm) (I put the file there). Not good because that is not site specific. I modified the CF rootdir 404error.cfm to run the 404error.cfm at the website's root level but it knows nothing about application scope variables nor session scope variables.

How can I get IIS/CF to run 404error.cfm in the website's root directory directly without going thru that CFroot 404error.cfm file?

I hope I explained this so you can follow.

Thanks in advance ~Joe~
0
Comment
Question by:ckercher
1 Comment
 

Accepted Solution

by:
ckercher earned 0 total points
ID: 39714226
Resolved, the issue was the Enable HTTP status codes was not checked in CF admin. Thanks to Miguel-F on StackOverflow for pointing this out.

Joe
0

Featured Post

Microsoft Certification Exam 74-409

Veeam® is happy to provide the Microsoft community with a study guide prepared by MVP and MCT, Orin Thomas. This guide will take you through each of the exam objectives, helping you to prepare for and pass the examination.

Join & Write a Comment

Today, I was working on some optimization and spam-stopping techniques when I encountered Ben Nadel's post to reduce spam feature using Math (http://www.bennadel.com/blog/197-How-I-Stop-Spammers-On-My-ColdFusion-Blog.htm). While this method is not o…
I spent nearly three days trying to figure out how incorporate OAuth in Coldfusion for the Eventful API. Hopefully, this article will allow Coldfusion Programmers to buzz through the API when they need to. Basically, what this script does is authori…
Sending a Secure fax is easy with eFax Corporate (http://www.enterprise.efax.com). First, Just open a new email message.  In the To field, type your recipient's fax number @efaxsend.com. You can even send a secure international fax — just include t…
When you create an app prototype with Adobe XD, you can insert system screens -- sharing or Control Center, for example -- with just a few clicks. This video shows you how. You can take the full course on Experts Exchange at http://bit.ly/XDcourse.

707 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

15 Experts available now in Live!

Get 1:1 Help Now