David
Tue Nov 01 16:19:03 CST 2005
iisweb.vdir only creates one binding for a website.
If you need multiple host headers, you need to create multiple bindings. The
ServerBindings property is a LIST.
You can use the following tool to edit/append additional items onto the
ServerBindings property
http://blogs.msdn.com/david.wang/archive/2004/12/02/273681.aspx
Another sample script showing how to enumerate/view websites and their
bindings (gives insight into whether you ran the correct commands...)
http://blogs.msdn.com/david.wang/archive/2005/07/13/HOWTO_Enumerate_IIS_Website_Configuration.aspx
--
//David
IIS
http://blogs.msdn.com/David.Wang
This posting is provided "AS IS" with no warranties, and confers no rights.
//
"CDB" <CDB@discussions.microsoft.com> wrote in message
news:1FD3DC64-A94C-424B-93CF-79CD92AD2A17@microsoft.com...
Hi All,
I'm trying to script the creation of ~140 new websites on IIS6. I have had
great luck with the following command run from a batch file:
C:\WINDOWS\system32\CScript.exe iisweb.vbs /create d:\wwwroot\fooSite
"foo.com" /i 172.17.15.82 /d www.foo.com
However, I have several sites that need multiple host headers. I.e.
www.foo.com and foo.com.
I have tried </d www.foo.com foo.com>, </d www.foo.com /d foo.com>, </d
www.foo.com,foo.com>, and </d www.foo.com:foo.com> all with incorrect
results. Is this even possible? Any help would be greatly appreciated.
Thanks,
CDB