- html - 出于某种原因,IE8 对我的 Sass 文件中继承的 html5 CSS 不友好?
- JMeter 在响应断言中使用 span 标签的问题
- html - 在 :hover and :active? 上具有不同效果的 CSS 动画
- html - 相对于居中的 html 内容固定的 CSS 重复背景?
我正在使用 appcmd
在 IIS8 中创建一个新的虚拟目录。其语法是:
appcmd add vdir /app.name:<NAME> /path:<PATH> /physicalPath:<PHYSICAL-PATH>
applicationHost.config
中看到正在更新 XML 条目的文件。所以我应该可以手动设置
appcmd
.我正在努力使用语法导航到正确的 XML 元素,以便我可以设置属性
userName
并添加属性
password
.
<sites>
<site name="EXAMPLESITE" id="4">
<application path="/" applicationPool="EXAMPLEPOOL">
<virtualDirectory path="/" physicalPath="c:\wwwroot\" userName="" />
<virtualDirectory path="/upload" physicalPath="\\SOME-COMPUTER-ON-NETWORK\upload" userName="" />
</application>
<bindings>
<binding protocol="http" bindingInformation="*:80" />
</bindings>
</site>
</sites>
最佳答案
这应该有效:
appcmd set vdir /vdir.name:"EXAMPLESITE/upload" /userName:user /password:password
关于用于为 virtualDirectory 设置凭据的 IIS AppCmd 语法,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/18912419/
我一直在用dart:route api 用于提供静态文件,但我注意到有一个名为 http_server 的核心库包含 dart:io 的辅助类和函数HttpServer . 我特别感兴趣的是类(cla
我正在使用 appcmd在 IIS8 中创建一个新的虚拟目录。其语法是: appcmd add vdir /app.name: /path: /physicalPath: 这工作正常。现在我需要设置一
我们在 azure 机器中托管 3 个不同的 Web 应用程序,并且我们使用 CI 将这些更改从 azure 中的构建服务器 TFS 推送到我们的机器。 问题出在physicalDirectory属性
我一直在 VB.NET 项目中使用 Intel 的 UPNP 库,虽然缺乏文档使它变得困难(字面上猜测我必须在每一行代码中使用什么属性/方法)我已经能够按照我的意愿改变它,并且我有一个在 Window
我有一个模块化的 asp.net 应用程序,其中模块部署在主 .net Web 应用程序下的虚拟目录中。我们有一个包含很多东西的通用模块。我试图将所有通用脚本文件从每个客户端特定项目中移出到一个通用模
我创建了以下代码,但它没有给出我想要的实际结果。代码:- ServerManager manager = new ServerManager(); Site defaultSite = manag
我是一名优秀的程序员,十分优秀!