Quantcast
Channel: Configuration & Scripting
Viewing all articles
Browse latest Browse all 780

Custom error page configuration on IIS 8

$
0
0

Hi,

Want to set custom error pages for all error codes in IIS. Have tried to set error code - 403 in IIS 8. But how can I check whether my custom error page has been set for error code - 403? Accordingly, I can set rest of the custom error pages for rest of the error codes. Below one is web.config setting for 403:

<httpErrors errorMode="Custom" defaultResponseMode="ExecuteURL">
<remove statusCode="403" subStatusCode="-1" />
<error statusCode="403" path="~/Error/error_403" responseMode="ExecuteURL" />
</httpErrors>

Below are the error codes for which I need to set custom error pages.

404

403

402

406

500

501

502


Viewing all articles
Browse latest Browse all 780

Trending Articles