I have to deploy a few sites using TFS Release Management Client, all of them in them same machine so same IIS. They will be all on port 80 but the requests are served for different host names (domains).
Using IISConfig tool, it is possible to change the port but not the host name, do you know a quick way already implemented to achieve that without creating a custom tool?
Asked
Active
Viewed 81 times
-2

Paolo Vigori
- 1,612
- 1
- 18
- 32
-
Actually I realise that the problem is not just for hostname but for the entire binding entries – Paolo Vigori May 11 '16 at 12:27
1 Answers
1
As confirmed here, it is not possible but if you scroll down there is a suggestion how to quickly work around the limitation. Creating 2 actions
-Command "& { Import-Module WebAdministration; New-WebBinding -Name '__Name__' -IPAddress '__IPAddress__' -Port '__Port__' -HostHeader '__HostHeader__' }"
and
-Command "& { Import-Module WebAdministration; Remove-WebBinding -Name '__Name__' -IPAddress '__IPAddress__' -Port '__Port__' -HostHeader '__HostHeader__' } "

Paolo Vigori
- 1,612
- 1
- 18
- 32