这指的是CVE:CVE-2000-0649
appcmd.exe set config "SiteName" -section:system.webServer/serverRuntime /enabled:"True" /commit:apphost
appcmd.exe set config "SiteName" -section:system.webServer/serverRuntime /alternateHostName:"development-server-iis.local" /commit:apphost 在这里找到了解决方案:内部-ip地址泄漏iis10 10 10
我的问题--因为我有很多网站托管在一个服务器上,而不是所有的网站都“命名”--我如何使这个设置对服务器上的所有站点都有效呢?
发布于 2020-09-14 18:38:17
您可以使用PowerShell:
Get-ChildItem iis:\sites | Foreach-Object {
Set-WebConfigurationProperty -pspath 'MACHINE/WEBROOT/APPHOST' -location "$($_.Name)" -filter "system.webServer/serverRuntime" -name "enabled" -value "True"
Set-WebConfigurationProperty -pspath 'MACHINE/WEBROOT/APPHOST' -location "$($_.Name)" -filter "system.webServer/serverRuntime" -name "alternateHostName" -value "development-server-iis.local"
}IIS中的所有网站都是命名的,这段代码只是循环遍历它们,并运行所有这些站点的两个属性集。
https://serverfault.com/questions/1033863
复制相似问题