【发布时间】:2021-11-26 03:02:41
【问题描述】:
我正在尝试在 PowerShell 中构建一个部署脚本,以替代使用 IIS 用户界面的手动工作(这是针对 Docker 容器的)。我找不到的一个步骤是如何将用户从根 url 导航到应用程序文件夹。因此,如果用户导航到 www.site.com,他们会转到 www.site.com\WebSampleTest。
这是我目前所拥有的:
Set-WebConfiguration system.webServer/httpRedirect "IIS:\sites\Default Web Site" -Value @{enabled="true";destination="WebSampleTest";exactDestination="true";httpResponseStatus="Permanent"}
【问题讨论】:
标签: powershell iis http-redirect