[英]Automating Configuration of SSRS 2016 with powershell (Need to change URL from "https" of "http")
[英]Can Set-WebBinding change the protocol from HTTP to HTTPS?
我可以使用Set-WebBinding更改給定綁定的端口,但可以使用它從端口80上的http更改為端口443上的https或反之嗎?
我嘗試使用此命令,但由於無法識別-PropertyName Protocol
而失敗:
Set-WebBinding -Name 'Default Web Site' -BindingInformation '127.0.0.1:80:localhost' -PropertyName Port -Value 443 -PropertyName Protocol -Value 'https'
還是應該使用Remove-WebBinding
,然后使用New-WebBinding
進行此類更改?
我認為您將需要使用Remove-WebBinding
刪除現有的綁定,並使用New-WebBinding
重新創建它,從而允許您提供協議,端口等。
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.