How to remove error messages - IIS7

前端 未结 3 1751
囚心锁ツ
囚心锁ツ 2020-12-17 21:25

I\'m wondering how to remove the error messages IIS7 adds to the top of the page.

I have my own 500 and 404 error pages served.

Not needing the error pages I

3条回答
  •  半阙折子戏
    2020-12-17 21:55

    To prevent IIS7 hijacking your error pages, set existingResponse="PassThrough" in your httpErrors section in your web.config file. For example:

    
      
        
      
    
    

提交回复
热议问题