This section covers the fundamental concepts and steps to get started with IIS Webserver. Whether you're new to IIS or looking for a refresher, you'll find the basics here.
- Open the Run dialog by pressing
Win + R
and typeinetmgr
. - Press Enter to open the IIS Manager.
- In IIS Manager:
- Right-click on Sites in the left-hand navigation pane.
- Select Add Website.
- Fill in the required details:
- Site Name: Choose a unique name for your site.
- Physical Path: Set the directory where your website files are stored.
- Binding: Specify the protocol, IP address, and port (e.g., HTTP on port 80).
- Click OK to add the website.
- Open a browser and navigate to the hostname or IP address you configured (e.g.,
http://localhost
). - Verify that your website is loading successfully.
- Select your site in IIS Manager.
- Double-click Directory Browsing under the IIS section.
- Click Enable in the Actions pane.
- What is an Application Pool?
An application pool isolates one or more applications from others running on the same server.
- In IIS Manager, click Application Pools in the left-hand navigation pane.
- Right-click on an application pool and select Add Application Pool.
- Provide a name and select the appropriate .NET Framework version (if applicable).
- Click OK.
-
Create an HTML file named
index.html
with the following content:<!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <meta name="viewport" content="width=device-width, initial-scale=1.0"> <title>Welcome to IIS</title> </head> <body> <h1>Hello, IIS is running your site!</h1> </body> </html>