Options

Specifying host name in IIS deployments

andrew.harrisonandrew.harrison Posts: 5
edited May 1, 2014 3:21AM in Deployment Manager
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?

Comments

  • Options
    Hi Andrew,

    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.
    Development Lead
    Redgate Software
Sign In or Register to comment.