Configuring Internet Information Services (IIS) Application Pools in Server 2022

Posted on 18th June 2023

Introduction

Internet Information Services (IIS) is a web server from Microsoft that runs on Windows systems. IIS Application Pools provide a way to isolate sets of web applications, so that problems with one application do not affect other applications. This document describes how to configure IIS Application Pools on Windows Server 2022.

Prerequisites

In order to configure IIS Application Pools, you must have access to a Windows Server 2022 system with IIS installed.

Configuring IIS Application Pools

IIS Application Pools can be configured using the IIS Manager graphical user interface or using command-line tools.

Configuring IIS Application Pools using the IIS Manager GUI

To open the IIS Manager, click Start, then type “inetmgr” into the search box and press Enter. In the left-hand pane, expand the tree view under the server name until you find the “Application Pools” node. Right-click on this node and select “Add Application Pool…” from the menu.

In the “Add Application Pool” dialog, enter a name for the new Application Pool and select the .NET Framework version that you want to use. Click “OK” to create the new Application Pool.

To configure an existing Application Pool, double-click on it in the IIS Manager. This will open the “Edit Application Pool” dialog. Here, you can change the .NET Framework version and other settings.

Configuring IIS Application Pools using the Command Line

IIS Application Pools can also be configured using the appcmd.exe tool. This tool is located in the %windir%system32inetsrv directory.

To create a new Application Pool, use the following command:

appcmd.exe add apppool /name:MyAppPool /managedRuntimeVersion:v4.0

To configure an existing Application Pool, use the following command:

appcmd.exe set apppool /apppool.name:MyAppPool /managedRuntimeVersion:v4.0

Conclusion

This document has described how to configure IIS Application Pools on Windows Server 2022. IIS Application Pools provide a way to isolate sets of web applications, so that problems with one application do not affect other applications.

In order to configure an IIS application pool, you will first need to open the IIS Manager. You can do this by going to Start > Control Panel > Administrative Tools > Internet Information Services (IIS) Manager.

Once you have opened the IIS Manager, you will need to select the server that you want to configure. In the left-hand pane, expand the server name and then expand Sites. You should now see a list of all the sites that are on the server.

Click on the site that you want to configure an application pool for. In the right-hand pane, you will see a list of all the applications that are on the site. Right-click on the application that you want to configure and select Properties.

In the Properties dialog box, select the Application Pool tab. You will now see a list of all the application pools that are on the server. Select the application pool that you want to use for the site and click OK.

You have now successfully configured an application pool for your site.

Configuring an application pool is a two-step process. First, you need to create the application pool in IIS Manager. Second, you need to configure the properties of the application pool.

Creating an Application Pool

To create an application pool in IIS Manager, follow these steps:

1. In the Connections pane, expand the server node and click on Application Pools.

2. In the Actions pane, click on Add Application Pool.

3. Enter a name for the application pool and click OK.

Configuring Application Pool Properties

Once you have created the application pool, you can configure its properties. To do so, follow these steps:

1. In the Connections pane, expand the server node and click on Application Pools.

2. Select the application pool that you want to configure and click on it to select it.

3. In the Actions pane, click on Edit Application Pool.

4. In the Edit Application Pool dialog box, you can configure the following properties:

– Basic Settings: In the Basic Settings dialog box, you can configure the following settings:
– Enable 32-Bit Applications: This setting controls whether 32-bit applications can run in the application pool. The default setting is No.
– Managed Pipeline Mode: This setting controls how IIS processes requests. The options are Classic and Integrated. The default setting is Integrated.
– Managed Runtime Version: This setting specifies the version of the .NET runtime that the application pool will use. The options are v2.0 and v4.0. The default setting is v4.0.
– Identity: This setting controls the identity of the application pool. The options are LocalSystem, LocalService, NetworkService, and ApplicationPoolIdentity. The default setting is ApplicationPoolIdentity.
– Load User Profile: This setting controls whether the user profile for the application pool identity will be loaded. The default setting is False.
– Process Model: In the Process Model dialog box, you can configure the following settings:
– Identity: This setting controls the identity of the application pool. The options are LocalSystem, LocalService, NetworkService, and ApplicationPoolIdentity. The default setting is ApplicationPoolIdentity.
– Load User Profile: This setting controls whether the user profile for the application pool identity will be loaded. The default setting is False.
– Idle Time-out: This setting controls how long an idle process can remain active. The default setting is 20 minutes.
– Shutdown Time Limit: This setting controls how long IIS will wait for an active process to shut down. The default setting is 90 seconds.
– Ping Maximum Response Time: This setting controls how long IIS will wait for a response to a ping. The default setting is 90 seconds.
– Rapid-Fail Protection: In the Rapid-Fail Protection dialog box, you can configure the following settings:
– Enable Rapid-Fail Protection: This setting controls whether IIS will enable rapid-fail protection for the application pool. The default setting is True.
– Failure Interval: This setting controls the interval at which IIS will consider an application pool to have failed. The default setting is 5 minutes.
– Max Failures: This setting controls the number of failures that IIS will allow before shutting down the application pool. The default setting is 5 failures.
– Health Monitoring: In the Health Monitoring dialog box, you can configure the following settings:
– Enable Rapid-Fail Protection: This setting controls whether IIS will enable rapid-fail protection for the application pool. The default setting is True.
– Failure Interval: This setting controls the interval at which IIS will consider an application pool to have failed. The default setting is 5 minutes.
– Max Failures: This setting controls the number of failures that IIS will allow before shutting down the application pool. The default setting is 5 failures.
– Recycling: In the Recycling dialog box, you can configure the following settings:
– Enable Recycling: This setting controls whether IIS will enable recycling for the application pool. The default setting is True.
– Recycling Times: This setting controls the times at which IIS will recycle the application pool. The default setting is 00:00:00.
– Logging: In the Logging dialog box, you can configure the following settings:
– Enable Logging: This setting controls whether IIS will enable logging for the application pool. The default setting is True.
– Log Format: This setting controls the format of the log file. The options are W3C and IIS. The default setting is W3C.
– Log File Directory: This setting controls the directory in which the log file will be stored. The default setting is %SystemDrive%inetpublogsLogFiles.
-Performance: In the Performance dialog box, you can configure the following settings:
– Enable Dynamic Content Compression: This setting controls whether IIS will compress dynamic content. The default setting is True.
– Enable Static Content Compression: This setting controls whether IIS will compress static content. The default setting is True.
– Security: In the Security dialog box, you can configure the following settings:
– Enable Anonymous Access: This setting controls whether IIS will allow anonymous access to the application pool. The default setting is True.
– Enable Windows Authentication: This setting controls whether IIS will allow Windows authentication. The default setting is True.
– Enable Basic Authentication: This setting controls whether IIS will allow Basic authentication. The default setting is True.
– Enable Client Certificate Mapping Authentication: This setting controls whether IIS will allow client certificate mapping authentication. The default setting is True.
– Enable Digest Authentication: This setting controls whether IIS will allow Digest authentication. The default setting is True.
– Enable Forms Authentication: This setting controls whether IIS will allow Forms authentication. The default setting is True.

5. After you have configured the properties, click OK.