none
Setting Custom "401 Unauthorized" Page in SharePoint 2013 RRS feed

  • Question

  • Hi,

    When user cancel the login prompt the default 401 Unauthorized message visible I am trying to change this message in SharePoint 2013.

    I followed below steps.

    Putting below following code into SharePoint web application web.config under system.web

    <httpErrors errorMode="Custom" existingResponse="Replace">
    	<remove statusCode="401"></remove>
    	<error statusCode="401" responseMode="File" path="custom401.html" />
    </httpErrors>

    2. copy "custom401.html" file to C:\inetpub\wwwroot\wss\VirtualDirectories\<webapplicationname>

    3. There is only one WFE

    but I am getting " 500 internal server error" please suggest.


    Friday, August 18, 2017 1:51 PM

All replies