This project has moved and is read-only. For the latest updates, please go here.

Web application creating mulitple bindings

Jul 23, 2012 at 2:39 PM
Edited Jul 23, 2012 at 2:52 PM

Is there a way to create mulitple bindings for each web app? We use SSL redirect for each of our web apps. I can create the web app on port 443 but if I want to configure a redirect from port 80 that port also needs to be there. I was trying to find a way to use the automated process to create the site on both 80 and 443 and then configure the redirect...


I found this code:

$wa = Get-SPWebApplication "http://portal"
$zone = $wa.IisSettings.Item("Default")
$binding = New-Object Microsoft.SharePoint.Administration.SPServerBinding
$binding.HostHeader = ""