Here's the code:
Code:site.ServerBindings = IPAddress & ":80:" & DomainName
The ServerBindings Property is this:
This works perfectly for adding a single host header, but I need to also add one with the "www." in the beginning of the domain name. I've tried writing an array but it justs overwrites each time leaving me with only the last host header in the array.Code:Public Property ServerBindings() As String Get Return CType(site.Properties("ServerBindings")(0), String) End Get Set(ByVal Value As String) site.Invoke("Put", "ServerBindings", Value) End Set End Property
Anyone have any ideas?




Reply With Quote