-2

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?

Paolo Vigori
  • 1,612
  • 1
  • 18
  • 32

1 Answers1

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