Specifying host name in IIS deployments
andrew.harrison
Posts: 5
We are wanting to deploy multiple websites running on IIS all using port 80. To create the website in IIS manually, I would specify a different "host name" for each site binding.
For example
website 1: www.siteone.com
website 2: www.sitetwo.com
There is an variable called RedGateCreateWebSiteOnPort which allows specifying the port. Is there a variable that allows for specifying the host name?
If not, would the solution be to create/configure the website bindings via a PowerShell script?
For example
website 1: www.siteone.com
website 2: www.sitetwo.com
There is an variable called RedGateCreateWebSiteOnPort which allows specifying the port. Is there a variable that allows for specifying the host name?
If not, would the solution be to create/configure the website bindings via a PowerShell script?
Comments
I'm afraid there isn't a variable to allow you to configure the host name part of the binding, so you're right, the solution would be to reconfigure the binding in a PostDeploy.ps1 PowerShell script using the WebAdministration PowerShell module.
Redgate Software