Skip to content

Commit 2b3066a

Browse files
committed
resolve reviewer comments
1 parent 13acae9 commit 2b3066a

4 files changed

Lines changed: 17 additions & 17 deletions

File tree

learn-pr/advocates/configure-manage-website-application/includes/1-website-application-virtual-directory.md

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,9 @@ IIS organizes web content through a hierarchy of sites, applications, and virtua
44

55
IIS structures web content in a three-tier hierarchy:
66

7-
1. **Website (Site).** The top-level container. Each site has at least one binding (IP address, port, and optional host name) that identifies incoming requests. A site maps to a physical root directory on disk.
8-
1. **Web Application.** A child container within a site. Applications have their own application pool assignment and can have separate configuration settings from the parent site. Use applications when you need isolated configuration, a different .NET runtime, or a dedicated worker process identity for a portion of a site.
9-
1. **Virtual Directory.** A pointer from a URL path to a physical directory on disk (which may be on a different volume or UNC path). Virtual directories don't have their own application pool and inherit the parent application's settings.
7+
- **Website (Site).** The top-level container. Each site has at least one binding (IP address, port, and optional host name) that identifies incoming requests. A site maps to a physical root directory on disk.
8+
- **Web Application.** A child container within a site. Applications have their own application pool assignment and can have separate configuration settings from the parent site. Use applications when you need isolated configuration, a different .NET runtime, or a dedicated worker process identity for a portion of a site.
9+
- **Virtual Directory.** A pointer from a URL path to a physical directory on disk (which may be on a different volume or UNC path). Virtual directories don't have their own application pool and inherit the parent application's settings.
1010

1111
> [!NOTE]
1212
> This hierarchy is stored in the central IIS configuration file, ApplicationHost.config, located at %windir%\system32\inetsrv\config\.
@@ -37,7 +37,7 @@ To add a new site in IIS manager:
3737
- Port: Enter 80 (or another port if 80 is already in use and you're hosting multiple sites on the same IP address but differentiating based on port).
3838
- Host name: Enter the FQDN for this site, for example www.contoso.com. Host names are required when multiple sites share port 80 or 443 on the same IP address. The sites are differentiated by IIS using the HTTP host header value in each incoming request.
3939

40-
![Screenshot showing the Add Website dialog box](../media/add-website.png)
40+
![Screenshot showing the Add Website dialog box.](../media/add-website.png)
4141

4242
1. Leave Start Website immediately checked unless you want to configure the site before it begins serving requests.
4343
1. Select OK.
@@ -86,7 +86,7 @@ Granting permissions directly to that identity ensures:
8686
- Other application pools on the same server can't read or execute the content
8787
- You avoid using broad identities like Everyone, Users, or IIS_IUSRS
8888

89-
Granting `Read and Execute` adheres to the principle of least privilege as IIS only needs read access to serve static content and load assemblies, and execute is require for binaries such as ASP.NET and native modules. You shouldn't assign the Write privilege as this will limit attacks such as:
89+
Granting `Read and Execute` adheres to the principle of least privilege as IIS only needs read access to serve static content and load assemblies, and execute is required for binaries such as ASP.NET and native modules. You shouldn't assign the Write privilege as this will limit attacks such as:
9090

9191
- Web shell uploads
9292
- Defacement attacks
@@ -96,15 +96,15 @@ Granting `Read and Execute` adheres to the principle of least privilege as IIS o
9696

9797
To add a Web Application within a Site
9898

99-
1. In the Connections pane, expand Sites, then select on the Contoso site.
99+
1. In the Connections pane, expand Sites, then select the Contoso site.
100100
1. Right-click the site and select Add Application.
101101
1. In the Add Application dialog, configure:
102102
- Alias: The URL path segment, for example demoapp (accessible at www.contoso.com/demoapp).
103103
- Application pool: Select or create a dedicated pool.
104104
- Physical path: Enter the path to the application's files, for example d:\demoapp.
105105
1. Select OK.
106106

107-
![Screenshot showing the Add Application dialog box](../media/add-application.png)
107+
![Screenshot showing the Add Application dialog box.](../media/add-application.png)
108108

109109
You can accomplish this with the following PowerShell command:
110110

@@ -125,7 +125,7 @@ To add a virtual directory within a site using IIS Manager, perform the followin
125125
- Physical path: Enter the directory path, for example D:\shared\downloads.
126126
1. Select OK.
127127

128-
To add a virtual directory using PowerShell, perform the following steps:
128+
You can add a virtual directory using the PowerShell `New-WebVirtualDirectory` cmdlet. For example, to add a new virtual directory named `downloads` to the `Contoso` site, run the command:
129129

130130
```powershell
131131
New-WebVirtualDirectory -Site "Contoso" `

learn-pr/advocates/configure-manage-website-application/includes/2-application-pool-worker-process.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ To create an application pool using IIS Manager, perform the following steps:
2121
- Managed pipeline mode: Select Integrated.
2222
1. Select OK.
2323

24-
![Screenshot of the Add Application Pool dialog box](../media/application-pool.png)
24+
![Screenshot of the Add Application Pool dialog box.](../media/application-pool.png)
2525

2626
To edit an existing pool, double-click it or select it and select Basic Settings in the Actions pane.
2727

@@ -50,7 +50,7 @@ To configure application pool recycling in IIS Manager, perform the following st
5050
- Memory-based recycling: Set virtual memory and private memory limits (in KB) to trigger recycling if the worker process exceeds those thresholds.
5151
1. Select Next to configure recycling event log settings, then select Finish.
5252

53-
![Screenshot of the Recycling Conditions dialog box](../media/recycle-condition.png)
53+
![Screenshot of the Recycling Conditions dialog box.](../media/recycle-condition.png)
5454

5555
You use the `Set-ItemProperty` cmdlet to configure application pool recycling using PowerShell. For example, to configure a regular interval, run the following command:
5656

learn-pr/advocates/configure-manage-website-application/includes/3-binding-host-header.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ To add and edit site bindings in IIS Manager, perform the following steps:
3636

3737
To edit an existing binding: select it in the list and select Edit. To remove a binding: select it and select Remove. Removing the only binding makes the site inaccessible.
3838

39-
You managing bindings in PowerShell with the `WebBinding` cmdlets. For example:
39+
You manage bindings in PowerShell with the `WebBinding` cmdlets. For example:
4040

4141
```powershell
4242
# Add an HTTP binding with a host header
@@ -75,7 +75,7 @@ To enable SNI in IIS Manager:
7575
> [!NOTE]
7676
> Every HTTPS site sharing the same IP and port 443 must have SNI enabled. If even one site on that IP/port doesn't use SNI, it conflicts with the others.
7777
78-
To enabling SNI with PowerShell, use the `WebBinding` cmdlets. For example:
78+
To enable SNI with PowerShell, use the `WebBinding` cmdlets. For example:
7979

8080
```powershell
8181
# SslFlags: 0 = no SNI, 1 = SNI, 2 = central certificate store

learn-pr/advocates/configure-manage-website-application/includes/4-advanced-site-configuration.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
Beyond basic site creation and bindings, IIS provides a rich set of per-site and per-application configuration options that affect how content is served and how errors are handled. In this unit, you configure custom HTTP error pages, implement URL redirection, manage MIME types, enable HTTP compression, and configure request filtering to block unwanted or potentially harmful traffic.
22

3-
## Custom Error Pages
3+
## Custom error pages
44

55
By default, IIS returns a generic HTTP error page when a client encounters a `4xx` or `5xx` status code. Customizing error pages improves the user experience and prevents accidental disclosure of internal diagnostic details.
66

@@ -31,7 +31,7 @@ Set-WebConfiguration `
3131
}
3232
```
3333

34-
## MIME Types
34+
## MIME types
3535

3636
MIME types tell clients (browsers) how to interpret the content being served. If a file extension isn't registered in IIS, IIS returns a `404.3` error instead of serving the file, even if the file exists on disk.
3737

@@ -57,7 +57,7 @@ Add-WebConfigurationProperty -PSPath "IIS:\Sites\Contoso" `
5757
-Value @{ fileExtension = ".avif"; mimeType = "image/avif" }
5858
```
5959

60-
## HTTP Compression
60+
## HTTP compression
6161

6262
HTTP compression reduces response size, improving page load times and reducing bandwidth consumption. IIS supports two compression types:
6363

@@ -89,7 +89,7 @@ Set-WebConfigurationProperty `
8989
-PSPath "IIS:\" -Name "doDynamicCompression" -Value $true
9090
```
9191

92-
## Request Filtering
92+
## Request filtering
9393

9494
Request filtering is a built-in IIS security module that inspects incoming requests and blocks those that match defined rules. It's installed by default and runs early in the request pipeline, before most application code executes.
9595

@@ -137,7 +137,7 @@ Add-WebConfigurationProperty -PSPath $sitePath `
137137
> [!NOTE]
138138
> Overly aggressive request filtering can cause legitimate requests to fail. Test filtering rules in a staging environment before deploying to production. Review IIS logs for `404.x` and `400` errors that may indicate blocked legitimate traffic.
139139
140-
## Using the Built-In HTTP Redirect Feature
140+
## Using the built-In HTTP redirect feature
141141

142142
For simple whole-site redirects, IIS includes a built-in HTTP Redirect feature that doesn't require the URL Rewrite module:
143143

0 commit comments

Comments
 (0)