To configure an IIS (Windows 11 & 24 H2) server for your local site named "mySite", follow these steps:
-
Install IIS: If IIS is not already installed, you can install it via the Add Roles and Features Wizard.
-
Create a new website:
a. Open IIS Manager.
b. Right-click on Sites, then select Add > Website.
c. In the Add Website dialog box, enter the following details:
- Site name: mySite
- Physical path: C:\inetpub\wwwroot\mySite (or the directory where your website files are located)
- Port: 80 (unless you have another website on port 80, in which case you can use a different port)
d. Click Next, then click Finish.
-
Create an application pool (optional):
a. If you want to create a specific application pool for your site, right-click on Application Pools, then select Add Application Pool.
b. In the Add Application Pool dialog box, enter the following details:
- Name: mySite (or a name of your choice)
- .NET Framework version: Select the appropriate version for your application
c. Click Next, then click OK.
d. Associate your website with the application pool:
- In IIS Manager, select your website (mySite) in the Sites section.
- Double-click on the Module Settings or FastCGI Settings (depending on your application) in the Features View.
- In the Configuration section, select the appropriate application pool from the dropdown menu.
-
Set up bindings:
a. In IIS Manager, select your website (mySite) in the Sites section.
b. Double-click on the Bindings in the Features View.
c. Click Add, enter the hostname or IP address and port number for your site, then click OK.
-
Configure security:
a. To allow anonymous access, select your website (mySite) in the Sites section.
b. Double-click on Authentication in the Features View.
c. Ensure Anonymous Authentication is enabled, and click Edit if necessary to configure it.
-
Restart the website:
a. In IIS Manager, select your website (mySite) in the Sites section.
b. Click Stop in the Actions pane, then click Start to restart the website.
Now, your local site "mySite" should be accessible via the specified hostname or IP address and port number.
References:
-
Books:
- "IIS 10 for Windows Server" by William R Stanek
-
Articles:
-
Online resources: