Permalink
Browse files

Configured custom 404 error page.

  • Loading branch information...
1 parent 3bdc050 commit 2ff88c38bfe827ff74257fb25bda1a0782794669 @benfoster committed Apr 3, 2013
Showing with 7 additions and 0 deletions.
  1. +7 −0 src/NancyVsMvc.Mvc/Web.config
@@ -24,8 +24,15 @@
<add namespace="System.Web.WebPages" />
</namespaces>
</pages>
+ <customErrors mode="RemoteOnly">
+ <error statusCode="404" redirect="~/404.html"/>
+ </customErrors>
</system.web>
<system.webServer>
<validation validateIntegratedModeConfiguration="false" />
+ <httpErrors errorMode="DetailedLocalOnly">
+ <remove statusCode="404"/>
+ <error statusCode="404" path="/404.html" responseMode="ExecuteURL"/>
+ </httpErrors>
</system.webServer>
</configuration>

0 comments on commit 2ff88c3

Please sign in to comment.