Book Image

Microsoft IIS 10.0 Cookbook

By : Ashraf Khan
5 (1)
Book Image

Microsoft IIS 10.0 Cookbook

5 (1)
By: Ashraf Khan

Overview of this book

This book will start with customizing your IIS 10 to various platforms/OS and tune it according to your business requirements. Moving on, we will focus on the functionalities of core fundamentals and perform practical scenarios in order to maximize the use of a reliable web server. Going further we will be covering topics like IIS 10 architecture, IIS modules,hosting web server platforms, virtual directories along with web site deployment, ports, enhanced security. We will also cover new features of IIS 10 like integration with Windows Server 2016 and Nano Server, HTTP/2, PowerShell 5 cmdlets etc . Towards the end, we will cover troubleshooting & diagnostic techniques of IIS 10. By the end of this book you will be well versed with maximizing the reliability of your webserver and will have immense knowledge in using IIS 10 effectively
Table of Contents (14 chapters)

Basic configuration of IIS 10.0

In this recipe, we will learn about the basic configuration of IIS 10.0. We are going to review the Inetpub folder, wwwroot folder, and logs folder.

We will also be covering binding options and limits.

Getting ready

We require an up-and-running IIS 10.0 instance. You should have administrative privileges for IIS management.

How to do it...

  1. When we installed IIS 10.0 on Server 2016, the default installation folder location was C:\inetpub.
  2. Log in to Windows Server 2016, go to the C:\ drive, and find the default IIS folder called inetpub. You can see this in the following figure:
  1. By default, all the website files will be stored in the wwwroot folder. The path is C:\inetput\wwwroot. The following screenshot shows the default IIS 10.0 website files:
  1. Now, we are going to see the logs folder. It is located at C:\inetpub\logs:
  1. Start IIS Manager and select the Default Web Site. You will get the Actions window on the right-hand side. Inside the Actions list, we have the Edit Site option.
  1. Click on the Basic Setting... text button. You will get the following window for basic settings:
  1. We selected the Default Web Site; now you can see the Site name, Application pool, Physical path, and Connect as... authentication option.
  2. In the Edit Site window, you can change the Application pool and define your website folder path or default type of authentication. Finally, you can test the default settings.
  3. Let's look at some binding options. In the Actions list, you will see that there is a Bindings... option. Bindings are used for defining your website parameters: Type http, Host Name www.xyz.com, Port 80, and IP Address * for example, as shown here:
  1. Now, set the Limits for website access. In the Actions list, which is available on the right-hand side of IIS Manager, go to the Default Web Site properties.

  1. On the configuration screen, click on Limits.... You will get the following pop-up window:
  1. Here, we can limit the bandwidth usage in bytes, limit the connection timeout in seconds, and also limit the number of connections.

How it works...

We have installed IIS 10.0 with the default options and IIS 10.0 default website configuration. We also had an overview of wwwroot, logs, and the configuration window. This will help us find out where the wwwroot and logs folders are located. We also reviewed the basic and default configuration of websites, binding options, and limits.

In the next recipe, we will create and configure our own settings.