Skip to content

Commit 83a5e37

Browse files
author
Martin Atanasov
authored
Added custom error page for IIS
1 parent b7ccb1b commit 83a5e37

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

web.config

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -96,6 +96,12 @@
9696
<remove fileExtension=".woff" />
9797
<mimeMap fileExtension=".woff" mimeType="application/x-font-woff" />
9898
</staticContent>
99+
<httpErrors errorMode="DetailedLocalOnly" defaultResponseMode="File" >
100+
<remove statusCode="403" />
101+
<remove statusCode="404" />
102+
<error statusCode="403" path="40x.html" />
103+
<error statusCode="404" path="40x.html" />
104+
</httpErrors>
99105
</system.webServer>
100106

101107
</configuration>

0 commit comments

Comments
 (0)