I have configured a site to use SSL, thus I added following section in my web.config
<?xml version="1.0" encoding="UTF-8"?>
<configuration>
<system.webServer>
<httpErrors>
<error statusCode="403" subStatusCode="4" path="D:\Data\www\Site\403.htm" responseMode="File" />
</httpErrors>
</system.webServer>
</configuration>
Once I have included it, and when I visited http://my-url/pagr/some.aspx I got The page cannot be displayed because an internal server error has occurred. message. If I remove it I could see default 403 error page.
Is it something wrong with my config?
D:\Data\wwwroot\Site\403.htmexists on the live server?