Specifying host name in IIS deployments

Automated deployment for web applications and databases

Specifying host name in IIS deployments

Postby andrew.harrison » Wed Apr 30, 2014 9:49 am

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?
Posts: 3
Joined: Wed Apr 30, 2014 9:28 am
Location: United Kingdom

Postby Mike Upton » Thu May 01, 2014 7:21 am

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.
Mike Upton

Project Manager - SQL Compare|Data Compare|Comparison SDK
Redgate Software Ltd.
Mike Upton
Posts: 209
Joined: Wed May 11, 2011 7:04 am
Location: Redgate

Return to Deployment Manager

Who is online

Users browsing this forum: No registered users and 0 guests