IIS7.5展示自定义的500信息

默认IIS7.5会使用自定义的error page来展示,而有时我们又希望通过自定义SubStatusCode来定义一些自己的规则以节省一些资源。如果需要让IIS7.5支持,需要这样设置:

C:\Windows\system32>%windir%\system32\inetsrv\appcmd.exe set config "appstore" /
section:httpErrors /errorMode:Detailed

否则,就会看到:

There is a problem with the resource you are looking for, and it cannot be displayed.

这样的内容

posted @ 2011-01-06 15:29  new 维生素C.net()  阅读(667)  评论(0编辑  收藏  举报