Multiple SSL sites with host headers
Situation
- Configuration of multiple web applications using host headers for extranet.
- Configure for extranet on port 443 (SSL)
- Configure using Wild Card Certificate
Error
When I tried to configure the second web application, the web site stopped with the error
Cannot create a file when that file already exists
Resolution
In the given situation, multiple host headers are to be configured to use port 443. Since we are using multiple web applications on the same secure port you will need to use the ADSUtil to configure the “SecureBindings”
In addition to installing a wildcard server certificate on SSL-enabled Web sites, it is recommended to configure the SecureBindings metabase property on each site so it contains the host header name of the site. All SSL-enabled sites that use the same IP/port binding and are distinguished only by host header name must use the same wildcard server certificate.
To configure the SecureBindings metabase property for SSL host headers
From the command prompt navigate to c:\inetpub\adminscripts
Type the following command at the cmd prompt
cscript.exe adsutil.vbs set /w3svc/<site identifier>/SecureBindings ":443:<host header>"
where host header is the host header for the Web site, for example, extranet.justsharepoint.com
where site identifier is the identifier for your web site in IIS.
Sample command
cscript.exe adsutil.vbs set /w3svc/848820626/SecureBindings ":443:extranet.justsharepoint.com"
- Thanks, that is quite useful!...
- Hi Guys, Any one know how to push this out to multiple ma...
- Cheers mate. tried a bunch of stuff and this worked a treat ...
- .. ] is another nice source of information on this topic..]...
- I found easier way to do so. Tools-> Options-> Mail F...
- Yeah I was wondering how to sign up for the Windows Live Hot...
- Hello, I already have the image embedded into the html si...
- make sure you do all line breaks with shift + enter and b...
- after creating a sig with the logo you want, you can open MS...
- What if there is not signature folder, I'm doing this remote...



Tom C said,
Wrote on October 17, 2008 @ 4:09 am
I’ve gotten my site up and running very well using the methods you mentioned. How do you restore a farm from backup to a new site with this method? I’ve begun testing that and it complains that the port is already in use and the restore fails.
Tom C said,
Wrote on October 17, 2008 @ 4:14 am
I may have answered my own question with someone else’s blog post. I’ll post it here for anyone else who has the same issue. I’d also appreicate any comments about other methods of dealing with the issue (if there are any).
http://lanestechblog.blogspot.com/2008/03/backing-up-and-restoring-sharepoint.html
Thanks,
TC
David Smith said,
Wrote on February 19, 2009 @ 4:49 am
the binding works for a while, then the site goes down, once I tried to bring it back, I got the same error as before so I have to run the binding command again. it happens several times on two servers so we decide to unbing the command, is there anyway to do this?
Thanks alot