Want to win a PS4? Go Premium and enter to win our High-Tech Treats giveaway. Enter to Win

x
?
Solved

Custom Coldfusion 404 error template per website, IIS7

Posted on 2013-12-11
1
Medium Priority
?
601 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
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

Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

Hi. There are several upload tutorials using jquery and coldfusion. I found a very interesting one here Upload Your Files using Jquery & ColdFusion and Preview them (http://www.randhawaworld.com/) . I did keep the main js functions but made sever…
Lync server 2013 or Skype for business Backup Service Error ID 4049 – After File Share Migration
This tutorial will teach you the special effect of super speed similar to the fictional character Wally West aka "The Flash" After Shake : http://www.videocopilot.net/presets/after_shake/ All lightning effects with instructions : http://www.mediaf…
Sometimes it takes a new vantage point, apart from our everyday security practices, to truly see our Active Directory (AD) vulnerabilities. We get used to implementing the same techniques and checking the same areas for a breach. This pattern can re…

636 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