How do you change the allowDefinition section attribute using appcmd in IIS 7?

后端 未结 3 556
囚心锁ツ
囚心锁ツ 2021-01-11 11:02

Is it possible to use appcmd to change the value of allowDefinition? Specifically I\'m try to enable changes to the httpCompression module at the application level.

3条回答
  •  清歌不尽
    2021-01-11 11:30

    One big warning, you should NEVER change the allowDefinition, that is an important setting that is usually there for a reason, for example it might be that even if you set it in a specific directory or app it will not work, so the developers have specified that.

    So please, never modify the allowDefinition attribute in the section definitions. On the other hand you can modify the overrideModeDefault which will allow users to define it in a different place if allowed by definition.

提交回复
热议问题