Add a Binding to a Site (IIS 7) |
![]() |
Written by Zack MIlls |
Thursday, 22 April 2010 11:53 |
http://technet.microsoft.com/en-us/library/cc731692(WS.10).aspx You can perform this procedure by using the user interface (UI), by running Appcmd.exe commands in a command-line window, by editing configuration files directly, or by writing WMI scripts. User InterfaceTo use the UI
Command LineTo add a binding to a site, use the following syntax: appcmd set site /site.name: string /+bindings.[protocol=' string ',bindingInformation=' string '] The variable site.name string is name of the site to which you want to add a binding. The variable protocol string is the protocol that you want to use, and the variable bindingInformation string is the combination of IP address, port, and host header. For example, to configure a site named contoso to have an HTTPS binding for all IP addresses, on port 443, without a host header, type the following at the command prompt, and then press ENTER: appcmd set site /site.name: contoso /+bindings.[protocol='https',bindingInformation='*:443:'] For more information about Appcmd.exe, see Appcmd.exe (IIS 7). ConfigurationThe procedure in this topic affects the following configuration elements: <bindings> under <site> element |