This article will give basic knowledge on IIS Server, HTTP request lifecycle, hosting a website in IIS, and introduction to application pool. Before we start on this, let's have a quick look on what is a website and how it’s related to Servers.

So, let’s get started.

Website

Website is a collection of webpages which contains numerous types of information in the form of graphics templates, scripts, and contents (texts & images). These web pages usually reside on a web server which is connected to the internet. Web Server is a computer which is used to store, process, and deliver webpages to the clients. Web Server is specially used to host the websites by Web Hosting Provider Company.

IIS Server

Fig-1 represents a basic pictorial representation of a website.

Introduction to IIS

IIS stands for Internet Information Services. Formerly known as Internet Information Server, IIS is a Web Server or a Windows component that accepts requests from Client browser and responds with the requested page(s). It is an extensible web server that supports HTTP, HTTPS, FTP, FTPS, SMTP, & NNTP protocols.

IIS Server

Fig-2 represents the protocols supported by IIS Server.

IIS Versions

The following versions supported by IIS in Windows Servers:-

IIS Manager is the tool used to configure & manage IIS.

IIS can be launched using the below two steps.

IIS Server

OR,

IIS Server

During the installation of IIS, a default website is created. This default website can be deleted or replaced by new websites.

The physical path for default website in IIS is c:\inetpub\wwwroot and the port is 80.

HTTP Request Life Cycle

Web Applications require a lot of technologies to build our code .When the user interacts with the app causes several HTTP request to run parallel. The http request life cycle is described as below:-

IIS Server

Fig-3 represents an Http request life cycle.

Hosting a website in IIS Server

For hosting a website in IIS follow the below steps:-

  1. Type inetmgr as shown in the below screenshot.

    IIS Server
  1. Right click on IIS Manager & click “Run as Administrator” below screen will appear.

    IIS Server

  1. Right click on sites present in left side of the windows pane & Select “Add Web Site” as shown in the below screenshot.

    IIS Server
  1. On clicking “Add Website” below screen will appear,

    IIS Server
  1. Give the site name, physical path, host name & click ok as shown in the below screenshot,

    IIS Server
  1. Mysite will appear on the left pane of the window as shown below.

    IIS Server
  1. Right click on website name & Go to “Manage Web Site” & select “Browse” as shown in the below screenshot,

    IIS Server

Introduction to Application Pool

IIS web application is a collection of one or more websites. The application pool is a collection of web applications which allow isolation between different web applications. Suppose we are hosting three applications in two different application pools, if web application 3 crashes web application 2 will not be affected. However, web application 1 will be affected as it is in the same application pool.

IIS Server
Fig-4 represents an application pool.

A separate application pool can be created to avoid crashing of the web application. Each application pool runs its own worker process, so that an error in one application pool will not affect the applications running in other application pools which will increase the level of security.