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)

IIS Manager

Now that we know how to install IIS 10.0, let's take a look at IIS Manager, which comes as a part of the IIS 10.0 Management tools provided by Microsoft. IIS 10.0 can be managed in either GUI mode or with PowerShell commands. The IIS Manager GUI interface comes with Windows Server 2016 by default.

We will also learn how we can connect a remote IIS server with IIS Manager.

Getting ready

To step through this recipe, you will need a running IIS 10.0 instance on Windows Server 2016. For remote IIS management, you need to Install IIS management tools.

How to do it...

  1. Start Server Manager on Windows Server 2016, which already has IIS 10.0 Installed on it.
  2. Click on the Tools menu.
  3. At the top, you will be able to see Internet Information Service Manager (IIS). This figure will show you how to get there:
  1. You will now see the IIS Manager home screen.
  1. IIS Manager shows you its connected servers, which have IIS 10.0 already installed on it.
  2. Then, we select WIN2016IIS (WIN2016IISAdministrator), which is at the left-hand side.
  3. The IIS Manager home screen will display the default features of IIS 10.0.

  1. As you can see in the following figure, there is an Application pool on the left-hand side along with your Default Web Site. Then, there are feature configuration options available in the middle section and then Manage Server, Restart, Start, and Stop at the right. You can browse the website from here.

How to manage remote IIS?

  1. You have more than one IIS Server instance available to manage even only
    website or web application want to manage from IIS Manager.
  2. We are going to connect a remote IIS Server instance with IIS Manager on Windows Server 2016. This you can do with any operating system that supports IIS 10.0.

  1. First, you have to install the Management Service role on the remote IIS server.
  2. Follow these path indicated by the next screenshot. You only have to select the Management Service feature.
  1. Select Management Service, press Next, and Finish the installation.

  1. Now open IIS Manager on remote server 172.16.15.212--this is the IP address in my case, but in your case, it will be your local machine's IP address. The default local machine IP address is 127.0.0.1. We have to enable remote connections, so select the IP of the server and set the Default port to 80. Allow access, Apply, and then Start. You can refer to this screenshot:
  1. Now we have to come to Windows Server 2016, which has IIS 10.0 Installed.

  1. Right-click on the Start Page icon or click on the globe below Connections. You will see the option to connect to an IIS Server, a website, or application.
  1. We will work on the server connection option first. Click on Connect to Server, which is listed in the previous screenshot. On the next screen, it will ask you whether you want to select a remote server IP or Computer Name.

  1. Enter the server IP address, which is 172.16.15.212. You will see the next screen. Click on the Next button to finish the current step.
  1. Now you have to enter your username and password, after which a server certificate confirmation alert pop-up message comes up on a successfully authenticated username and password. Click on the Connect button.
  1. Then, provide the server name. We are using remote IIS as the server name. Click on Finish. That's it; you're done. In the next screenshot, you can see the remote IIS server connected in the left-hand panel of connections for remote IIS management.

How it works...

Remote management for IIS Server is an easy way to manage several IIS servers at the same time from a single window. You can manage websites and application pools remotely as well.