【问题标题】:appcmd to set allowed file extension by web site not globallyappcmd 不全局设置网站允许的文件扩展名
【发布时间】:2018-12-14 12:28:48
【问题描述】:

需要做些什么来修改此脚本以设置网站允许的扩展,而不是全局。

appcmd set config /section:requestfiltering /+fileExtensions.[fileextension='string',allowed='true | false']

【问题讨论】:

标签: windows iis cmd iis-8


【解决方案1】:

这是您定位各个网站的方式。

appcmd set config "SITE_NAME_HERE" /section:system.webServer/security/requestFiltering /fileExtensions.[fileExtension='.json'].allowed:true

【讨论】:

    猜你喜欢
    • 2018-04-02
    • 2012-03-09
    • 1970-01-01
    • 2017-11-13
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2010-09-24
    • 2021-09-02
    相关资源
    最近更新 更多