简体   繁体   中英

Where is the base IIS 7 web.config for accessing system.webServer and how do you edit it through code

I am looking to add an HttpModule to all sites on a web server. For sites not running in pipeline mode this is easy as you place your module in the base web.config.

As IIS 7 pipeline ASP.Net applications use the system.webServer section of the web.config and this doesn't appear to be in the base web.config file, where does this global change go?

thanks in advance

I would imagine in machine.config , take a look at this other entry:

system.webserver section in machine.config

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM