How to remove internal server error phrase from status code 500 pages?
up vote
2
down vote
favorite
When an error 500 is generated by our application we would like to be in full control of the error page content. However IIS is adding a phrase at the top of the page, The page cannot be displayed because an internal server error has occurred.
Initially an IIS error page was being shown above our error page. In IIS Manager under Error Pages I have removed the page for Status Code 500. This removed the default IIS error page content but left the server error message above our error page.
- I have confirmed that the content isn't being added by the browser
- I confirmed it is not from our app. If I set the IIS error page settings to Detailed Errors the phrase doesn't appear
- We do not want Detailed Errors to be enabled for remote traffic just to fix this for error 500.
How can we disable this phrase?
iis coldfusion iis-8.5 coldfusion-2016
add a comment |
up vote
2
down vote
favorite
When an error 500 is generated by our application we would like to be in full control of the error page content. However IIS is adding a phrase at the top of the page, The page cannot be displayed because an internal server error has occurred.
Initially an IIS error page was being shown above our error page. In IIS Manager under Error Pages I have removed the page for Status Code 500. This removed the default IIS error page content but left the server error message above our error page.
- I have confirmed that the content isn't being added by the browser
- I confirmed it is not from our app. If I set the IIS error page settings to Detailed Errors the phrase doesn't appear
- We do not want Detailed Errors to be enabled for remote traffic just to fix this for error 500.
How can we disable this phrase?
iis coldfusion iis-8.5 coldfusion-2016
2
To append to the answer you got... helpx.adobe.com/coldfusion/developing-applications/… ... This may help if you want to customize a display for a given type of error, rather than just use IIS as a blanket to say something went wrong.
– TRose
Nov 19 at 21:32
add a comment |
up vote
2
down vote
favorite
up vote
2
down vote
favorite
When an error 500 is generated by our application we would like to be in full control of the error page content. However IIS is adding a phrase at the top of the page, The page cannot be displayed because an internal server error has occurred.
Initially an IIS error page was being shown above our error page. In IIS Manager under Error Pages I have removed the page for Status Code 500. This removed the default IIS error page content but left the server error message above our error page.
- I have confirmed that the content isn't being added by the browser
- I confirmed it is not from our app. If I set the IIS error page settings to Detailed Errors the phrase doesn't appear
- We do not want Detailed Errors to be enabled for remote traffic just to fix this for error 500.
How can we disable this phrase?
iis coldfusion iis-8.5 coldfusion-2016
When an error 500 is generated by our application we would like to be in full control of the error page content. However IIS is adding a phrase at the top of the page, The page cannot be displayed because an internal server error has occurred.
Initially an IIS error page was being shown above our error page. In IIS Manager under Error Pages I have removed the page for Status Code 500. This removed the default IIS error page content but left the server error message above our error page.
- I have confirmed that the content isn't being added by the browser
- I confirmed it is not from our app. If I set the IIS error page settings to Detailed Errors the phrase doesn't appear
- We do not want Detailed Errors to be enabled for remote traffic just to fix this for error 500.
How can we disable this phrase?
iis coldfusion iis-8.5 coldfusion-2016
iis coldfusion iis-8.5 coldfusion-2016
edited Nov 19 at 19:12
asked Nov 19 at 19:07
Dan Roberts
2,60622738
2,60622738
2
To append to the answer you got... helpx.adobe.com/coldfusion/developing-applications/… ... This may help if you want to customize a display for a given type of error, rather than just use IIS as a blanket to say something went wrong.
– TRose
Nov 19 at 21:32
add a comment |
2
To append to the answer you got... helpx.adobe.com/coldfusion/developing-applications/… ... This may help if you want to customize a display for a given type of error, rather than just use IIS as a blanket to say something went wrong.
– TRose
Nov 19 at 21:32
2
2
To append to the answer you got... helpx.adobe.com/coldfusion/developing-applications/… ... This may help if you want to customize a display for a given type of error, rather than just use IIS as a blanket to say something went wrong.
– TRose
Nov 19 at 21:32
To append to the answer you got... helpx.adobe.com/coldfusion/developing-applications/… ... This may help if you want to customize a display for a given type of error, rather than just use IIS as a blanket to say something went wrong.
– TRose
Nov 19 at 21:32
add a comment |
1 Answer
1
active
oldest
votes
up vote
6
down vote
The message is appended by IIS. If you don't want IIS to break in on your error handling, switch to the custom error mode in your web.config
:
<?xml version="1.0" encoding="UTF-8"?>
<configuration>
<system.webServer>
<!-- bypass IIS error handler -->
<httpErrors errorMode="Custom" existingResponse="PassThrough" />
</system.webServer>
</configuration>
More documentation about httpErrors
can be found here.
Is there any way to accomplish this in the IIS manager interface?
– Dan Roberts
Nov 19 at 19:34
At leasterrorMode
can be modified through the GUI:Error Pages
->Edit Feature Settings...
(right side) ->Custom
– Alex
Nov 19 at 19:37
the problem I have with this is that it is trying to pass through all errors and if there is no content from my app, for example in the case of a 404 on an static file, then no content is returned to the browser and the user gets a browser specific error page. I looked to see if there was a way to pass through just 500 error page content but doesn't appear that is supported. Only option I have seen that has the wanted outcome is making the 500.htm error page blank so that when it appears above our error content nothing gets added
– Dan Roberts
Nov 20 at 21:57
add a comment |
1 Answer
1
active
oldest
votes
1 Answer
1
active
oldest
votes
active
oldest
votes
active
oldest
votes
up vote
6
down vote
The message is appended by IIS. If you don't want IIS to break in on your error handling, switch to the custom error mode in your web.config
:
<?xml version="1.0" encoding="UTF-8"?>
<configuration>
<system.webServer>
<!-- bypass IIS error handler -->
<httpErrors errorMode="Custom" existingResponse="PassThrough" />
</system.webServer>
</configuration>
More documentation about httpErrors
can be found here.
Is there any way to accomplish this in the IIS manager interface?
– Dan Roberts
Nov 19 at 19:34
At leasterrorMode
can be modified through the GUI:Error Pages
->Edit Feature Settings...
(right side) ->Custom
– Alex
Nov 19 at 19:37
the problem I have with this is that it is trying to pass through all errors and if there is no content from my app, for example in the case of a 404 on an static file, then no content is returned to the browser and the user gets a browser specific error page. I looked to see if there was a way to pass through just 500 error page content but doesn't appear that is supported. Only option I have seen that has the wanted outcome is making the 500.htm error page blank so that when it appears above our error content nothing gets added
– Dan Roberts
Nov 20 at 21:57
add a comment |
up vote
6
down vote
The message is appended by IIS. If you don't want IIS to break in on your error handling, switch to the custom error mode in your web.config
:
<?xml version="1.0" encoding="UTF-8"?>
<configuration>
<system.webServer>
<!-- bypass IIS error handler -->
<httpErrors errorMode="Custom" existingResponse="PassThrough" />
</system.webServer>
</configuration>
More documentation about httpErrors
can be found here.
Is there any way to accomplish this in the IIS manager interface?
– Dan Roberts
Nov 19 at 19:34
At leasterrorMode
can be modified through the GUI:Error Pages
->Edit Feature Settings...
(right side) ->Custom
– Alex
Nov 19 at 19:37
the problem I have with this is that it is trying to pass through all errors and if there is no content from my app, for example in the case of a 404 on an static file, then no content is returned to the browser and the user gets a browser specific error page. I looked to see if there was a way to pass through just 500 error page content but doesn't appear that is supported. Only option I have seen that has the wanted outcome is making the 500.htm error page blank so that when it appears above our error content nothing gets added
– Dan Roberts
Nov 20 at 21:57
add a comment |
up vote
6
down vote
up vote
6
down vote
The message is appended by IIS. If you don't want IIS to break in on your error handling, switch to the custom error mode in your web.config
:
<?xml version="1.0" encoding="UTF-8"?>
<configuration>
<system.webServer>
<!-- bypass IIS error handler -->
<httpErrors errorMode="Custom" existingResponse="PassThrough" />
</system.webServer>
</configuration>
More documentation about httpErrors
can be found here.
The message is appended by IIS. If you don't want IIS to break in on your error handling, switch to the custom error mode in your web.config
:
<?xml version="1.0" encoding="UTF-8"?>
<configuration>
<system.webServer>
<!-- bypass IIS error handler -->
<httpErrors errorMode="Custom" existingResponse="PassThrough" />
</system.webServer>
</configuration>
More documentation about httpErrors
can be found here.
answered Nov 19 at 19:26
Alex
4,6861831
4,6861831
Is there any way to accomplish this in the IIS manager interface?
– Dan Roberts
Nov 19 at 19:34
At leasterrorMode
can be modified through the GUI:Error Pages
->Edit Feature Settings...
(right side) ->Custom
– Alex
Nov 19 at 19:37
the problem I have with this is that it is trying to pass through all errors and if there is no content from my app, for example in the case of a 404 on an static file, then no content is returned to the browser and the user gets a browser specific error page. I looked to see if there was a way to pass through just 500 error page content but doesn't appear that is supported. Only option I have seen that has the wanted outcome is making the 500.htm error page blank so that when it appears above our error content nothing gets added
– Dan Roberts
Nov 20 at 21:57
add a comment |
Is there any way to accomplish this in the IIS manager interface?
– Dan Roberts
Nov 19 at 19:34
At leasterrorMode
can be modified through the GUI:Error Pages
->Edit Feature Settings...
(right side) ->Custom
– Alex
Nov 19 at 19:37
the problem I have with this is that it is trying to pass through all errors and if there is no content from my app, for example in the case of a 404 on an static file, then no content is returned to the browser and the user gets a browser specific error page. I looked to see if there was a way to pass through just 500 error page content but doesn't appear that is supported. Only option I have seen that has the wanted outcome is making the 500.htm error page blank so that when it appears above our error content nothing gets added
– Dan Roberts
Nov 20 at 21:57
Is there any way to accomplish this in the IIS manager interface?
– Dan Roberts
Nov 19 at 19:34
Is there any way to accomplish this in the IIS manager interface?
– Dan Roberts
Nov 19 at 19:34
At least
errorMode
can be modified through the GUI: Error Pages
-> Edit Feature Settings...
(right side) -> Custom
– Alex
Nov 19 at 19:37
At least
errorMode
can be modified through the GUI: Error Pages
-> Edit Feature Settings...
(right side) -> Custom
– Alex
Nov 19 at 19:37
the problem I have with this is that it is trying to pass through all errors and if there is no content from my app, for example in the case of a 404 on an static file, then no content is returned to the browser and the user gets a browser specific error page. I looked to see if there was a way to pass through just 500 error page content but doesn't appear that is supported. Only option I have seen that has the wanted outcome is making the 500.htm error page blank so that when it appears above our error content nothing gets added
– Dan Roberts
Nov 20 at 21:57
the problem I have with this is that it is trying to pass through all errors and if there is no content from my app, for example in the case of a 404 on an static file, then no content is returned to the browser and the user gets a browser specific error page. I looked to see if there was a way to pass through just 500 error page content but doesn't appear that is supported. Only option I have seen that has the wanted outcome is making the 500.htm error page blank so that when it appears above our error content nothing gets added
– Dan Roberts
Nov 20 at 21:57
add a comment |
Thanks for contributing an answer to Stack Overflow!
- Please be sure to answer the question. Provide details and share your research!
But avoid …
- Asking for help, clarification, or responding to other answers.
- Making statements based on opinion; back them up with references or personal experience.
To learn more, see our tips on writing great answers.
Some of your past answers have not been well-received, and you're in danger of being blocked from answering.
Please pay close attention to the following guidance:
- Please be sure to answer the question. Provide details and share your research!
But avoid …
- Asking for help, clarification, or responding to other answers.
- Making statements based on opinion; back them up with references or personal experience.
To learn more, see our tips on writing great answers.
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f53381099%2fhow-to-remove-internal-server-error-phrase-from-status-code-500-pages%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
2
To append to the answer you got... helpx.adobe.com/coldfusion/developing-applications/… ... This may help if you want to customize a display for a given type of error, rather than just use IIS as a blanket to say something went wrong.
– TRose
Nov 19 at 21:32