IIS Webserver Basics
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.
1. Getting Started with IIS
Launch the IIS Manager
- Open the Run dialog by pressing
Win + R
and type inetmgr
.
- Press Enter to open the IIS Manager.
Add a Website in IIS
- 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.
Test 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.
2. Configuring IIS
Enable Directory Browsing
- 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.
3. Deploying a Simple HTML Website
-
Create an HTML file named index.html
with the following content:
```html
<!DOCTYPE html>
Welcome to IIS
Hello, IIS is running your site!