Solved

Custom Coldfusion 404 error template per website, IIS7

Posted on 2013-12-11
1
586 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

PRTG Network Monitor: Intuitive Network Monitoring

Network Monitoring is essential to ensure that computer systems and network devices are running. Use PRTG to monitor LANs, servers, websites, applications and devices, bandwidth, virtual environments, remote systems, IoT, and many more. PRTG is easy to set up & use.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
Reading the Web.Config using IIS 7.5? 4 49
Coldfusion cfscript DELETE function 7 28
IIS FTP Logging 10 40
Add a loading gif while php runs server side 15 38
Running classic asp applications under Windows Server 2008 R2 (x64) and IIS 7 is not as easy as one may think. It took me a while to figure it out while getting error 8002801d a few times. After you install the OS you will need to install the fol…
If you don't have the right permissions set for your WordPress location in IIS, you won't be able to perform automatic updates. Here's how to fix the problem.
A short tutorial showing how to set up an email signature in Outlook on the Web (previously known as OWA). For free email signatures designs, visit https://www.mail-signatures.com/articles/signature-templates/?sts=6651 If you want to manage em…
In an interesting question (https://www.experts-exchange.com/questions/29008360/) here at Experts Exchange, a member asked how to split a single image into multiple images. The primary usage for this is to place many photographs on a flatbed scanner…

820 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