appcmd cmd 操作IIS

创建子站点

appcmd.exe add app /site.name:"Default Web Site" /path:/TestSite /physicalPath:"C:\Applications"

打开C:\Windows\System32\inetsrv\config\applicationHost.config配置,添加下面的配置

<location path="Default Web Site/TestSite">
<system.webServer>
<security>
<authentication>
<windowsAuthentication enabled="true" />
<anonymousAuthentication enabled="false" />
</authentication>
</security>
</system.webServer>
</location>

posted on 2019-06-08 23:28  木龙哥  阅读(618)  评论(0编辑  收藏  举报

导航