Last post Sep 18, 2010 10:36 AM by XIII
Sep 18, 2010 09:46 AM|ariefimansantoso|LINK
I am maintaining hundreds of websites, is there a way to do this workaround in one place such as machine.config?
Sep 18, 2010 10:01 AM|HeartattacK|LINK
I'd recommend applying it on each website. You can put it in machine.config, but if the web.config specifies the custom errors section, that will override machine.config. Furthermore, you'll need to add / change the error.aspx page on each site.
Sep 18, 2010 10:36 AM|XIII|LINK
Applying it server wide can indeed be done by setting the machine.config setting and specifying allowOverride="false". However that might break sites if they have an override of it in one of their web.config files.
If you're a site admin then you should be able to use powershell to check up on all files in the folders where you put your sites, filter the web.config files and search for the customError section.
Another option would be to set the firewall to not let error messages (http codes) go through.