Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Add ssl example.
MicrosoftDocs#2063
  • Loading branch information
velkovb committed Sep 18, 2020
1 parent 472a2cc commit 9119a73
Show file tree
Hide file tree
Showing 3 changed files with 28 additions and 7 deletions.
9 changes: 8 additions & 1 deletion docset/windows/webadministration/New-WebBinding.md
Expand Up @@ -36,12 +36,19 @@ The **New-WebBinding** cmdlet adds a new binding to an existing website.
## EXAMPLES

### Example 1: Add a new site binding
```
```powershell
IIS:\> New-WebBinding -Name "Default Web Site" -IPAddress "*" -Port 80 -HostHeader "TestSite"
```

This command creates a binding on the default website.

### Example 2: Add a new ssl site binding
```powershell
IIS:\> New-WebBinding -Name "Default Web Site" -IPAddress "*" -Port 443 -HostHeader "TestSite" -Protocol "https"
```

This command creates an SSL binding on the default website.

## PARAMETERS

### -Force
Expand Down
13 changes: 10 additions & 3 deletions docset/winserver2012-ps/webadminstration/New-WebBinding.md
Expand Up @@ -26,12 +26,19 @@ Adds a new binding to an existing Web site.

## EXAMPLES

### -------------- EXAMPLE 1: Adding a new Site Binding --------------
### Example 1: Add a new site binding
```powershell
IIS:\> New-WebBinding -Name "Default Web Site" -IPAddress "*" -Port 80 -HostHeader "TestSite"
```
IIS:\>New-WebBinding -Name "Default Web Site" -IPAddress "*" -Port 80 -HostHeader TestSite

This command creates a binding on the default website.

### Example 2: Add a new ssl site binding
```powershell
IIS:\> New-WebBinding -Name "Default Web Site" -IPAddress "*" -Port 443 -HostHeader "TestSite" -Protocol "https"
```

Creates a new binding on the Default Web Site.
This command creates an SSL binding on the default website.s

## PARAMETERS

Expand Down
13 changes: 10 additions & 3 deletions docset/winserver2012r2-ps/webadministration/New-WebBinding.md
Expand Up @@ -34,13 +34,20 @@ The **New-WebBinding** cmdlet adds a new binding to an existing website.

## EXAMPLES

### Example 1: Adding a new site binding
```
IIS:\>New-WebBinding -Name "Default Web Site" -IPAddress "*" -Port 80 -HostHeader "TestSite"
### Example 1: Add a new site binding
```powershell
IIS:\> New-WebBinding -Name "Default Web Site" -IPAddress "*" -Port 80 -HostHeader "TestSite"
```

This command creates a binding on the default website.

### Example 2: Add a new ssl site binding
```powershell
IIS:\> New-WebBinding -Name "Default Web Site" -IPAddress "*" -Port 443 -HostHeader "TestSite" -Protocol "https"
```

This command creates an SSL binding on the default website.

## PARAMETERS

### -Force
Expand Down

0 comments on commit 9119a73

Please sign in to comment.