Turn IIS7 HTTP Error Handling Off?

前端 未结 2 1015
醉梦人生
醉梦人生 2020-12-04 18:14

I just got setup on my first Windows Server 2008 / IIS7.5 server for a contest I am participating in. I can\'t for the life of me figure out how to turn OFF error ha

2条回答
  •  独厮守ぢ
    2020-12-04 18:26

    After some more extensive searching, I found the answer here:

    http://blogs.msdn.com/webdevelopertips/archive/2009/08/24/tip-93-did-you-know-php-and-custom-error-pages-configuration.aspx

    The solution is to manually edit your web.config file with this custom "httpErrors" entry:

    
    
        
            
        
    
    

    However, due to IIS 7.0 "lockdown" feature you might get a "This configuration section cannot be used at this path. This happens when the section is locked at a parent level." error. To solve that, execute the following in the command prompt:

    cd C:\Windows\System32\inetsrv
    
    appcmd unlock config /section:httpErrors
    

提交回复
热议问题