Prevent web.config inheritance to a specific application in IIS

喜夏-厌秋 提交于 2019-12-13 20:03:59

问题


I have so many applications configured under a IIS domain. But this WCF application doesn't need the parent web.config. It has its own web.config. How can I prevent it ?


回答1:


If you are using II7+ then IIS Locking can help

IIS 7.0 and above allows locking and unlocking configuration settings in various levels and scopes. Locking down configuration means that it cannot be overridden (or set at all) at lower levels in the hierarchy. Unlocking configuration can only be done at the level where it was locked. This is useful, for example, when creating different configuration for different sites or paths, and only some of sites and paths are allowed to override it.



来源:https://stackoverflow.com/questions/24104667/prevent-web-config-inheritance-to-a-specific-application-in-iis

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!