Using ColdFusion and getting an "Internal Server Error" instead of a ColdFusion Error Page

I am using IIS7 with Windows Server2008 R2. I have ColdFusion 11 configured and running. Everything seems to work fine, except when I have a coldfusion error, I get an error message from IIS instead of ColdFusion. I get a generic 500 - Internal server error instead of a ColdFusion page telling me what is wrong.

This is a new installation on an empty server. Nothing works on this machine, and nothing else is loaded.

In the ColdFusion Administrator, I have checked the boxes for "Enable reliable exception information" and "Enable debug request."

If there are no errors on the page, the page works fine. It is simply difficult to debug it when I do not see what is wrong if there is a typo or something like that.

Thanks.

+6
source share
1 answer

Check the "enable http status codes" settings in the server settings> settings in the CF administrator. http://help.adobe.com/en_US/ColdFusion/10.0/Admin/WSc3ff6d0ea77859461172e0811cbf3638e6-7ffc.html

When the CF sets the status code 500 on error, IIS sees this and responds with its error page.

If you uncheck this option and technically solve your problem, the real solution would be to change the IIS settings so that it serves your page with the required error. You should not send error pages with errors to users on the production site.

+6
source

Source: https://habr.com/ru/post/973387/


All Articles