Users Online

We have 39 guests online
Add a Binding to a Site (IIS 7) PDF Print E-mail
Written by Zack MIlls   
Thursday, 22 April 2010 11:53

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 Interface

To use the UI
  1. Open IIS Manager. For information about opening IIS Manager, see Open IIS Manager (IIS 7). For information about navigating to locations in the UI, see Navigation in IIS Manager (IIS 7).

  2. In the Connections pane, expand the Sites node in the tree, and then click to select the site for which you want to add a binding.

  3. In the Actions pane, click Bindings.

  4. In the Site Bindings dialog box, click Add.

  5. In the Add Site Binding dialog box, add the binding information and then click OK.

Command Line

To add a binding to a site, use the following syntax:

appcmd set site / string /+bindings.[protocol=' string ',bindingInformation=' string ']

The variable 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 / contoso /+bindings.[protocol='https',bindingInformation='*:443:']

For more information about Appcmd.exe, see Appcmd.exe (IIS 7).


The procedure in this topic affects the following configuration elements:

<bindings> under <site> element