Hosting Multiple SSL Sites with IIS6
// July 16th, 2008 // 1 Comment » // Programming
A simple tip I came across when hosting multiple sites on a server.
It’s easy to assign a new ip address to the adapter, but creating a new ip address per website is a bit much.
I like to, where possible, use host-headers when hosting a website. Host headers across SSL are now supported by IIS6 (in Windows 2003 RC2).
- Start > Run > type “cmd”, press Enter.
- Paste…
cd c:\inetpub\adminscripts\into the command prompt …and press Enter. - Paste…
cscript.exe adsutil.vbs set /w3svc/{siteid}/SecureBindings ":443:{url}"…into the command prompt. You’ll need to replace {siteid} and {url}.
You can find the SiteId in IIS when looking at the list of websites. For example, I have a SiteId of “87257621” and url of “www.robertbeal.local” (this url points at 127.0.0.1 in my windows/system32/drivers/etc/hosts file).