Microsoft IIS 10.0 Cookbook
By Ashraf Khan
()
About this ebook
- Provide a secure, easy-to-manage extensible platform for hosting your websites
- Leverage IIS 10.0 in order to deploy web site in seconds
- Integrate Windows and Nano Server 2016 and automate it with PowerShell
- Recipes to Manage and monitor your IIS 10.0
If you are an administrator or web developer with a basic (or no) knowledge of Microsoft IIS and want to set up your own web server, then this is the book for you.
Related to Microsoft IIS 10.0 Cookbook
Related ebooks
Hyper-V 2016 Best Practices Rating: 0 out of 5 stars0 ratingsImplementing DevOps with Microsoft Azure Rating: 0 out of 5 stars0 ratingsLearning Windows Server Containers Rating: 0 out of 5 stars0 ratingsEnterprise PowerShell Scripting Bootcamp Rating: 0 out of 5 stars0 ratingsMicrosoft Azure IaaS Essentials Rating: 4 out of 5 stars4/5ASP.NET Web API Security Essentials Rating: 0 out of 5 stars0 ratingsSQL Server 2017 Integration Services Cookbook Rating: 0 out of 5 stars0 ratingsPostgreSQL 11 Administration Cookbook: Over 175 recipes for database administrators to manage enterprise databases Rating: 0 out of 5 stars0 ratingsVMware vSphere Design Essentials Rating: 0 out of 5 stars0 ratingsBootstrap for ASP.NET MVC - Second Edition Rating: 5 out of 5 stars5/5Troubleshooting vSphere Storage Rating: 0 out of 5 stars0 ratingsPractical DevOps Rating: 3 out of 5 stars3/5Mastering Active Directory Rating: 0 out of 5 stars0 ratingsLearning Microsoft Azure Rating: 4 out of 5 stars4/5Getting Started with Microsoft System Center Operations Manager Rating: 0 out of 5 stars0 ratingsLearn System Center Configuration Manager in a Month of Lunches: Covers SCCM 1511 and Windows 10 Rating: 0 out of 5 stars0 ratingsMicrosoft Exchange 2013 Cookbook Rating: 0 out of 5 stars0 ratingsDevOps with Windows Server 2016 Rating: 0 out of 5 stars0 ratingsPowerShell in Depth Rating: 0 out of 5 stars0 ratingsMicrosoft System Center Configuration Manager Cookbook - Second Edition Rating: 0 out of 5 stars0 ratingsSQL Server 2016 Developer's Guide Rating: 0 out of 5 stars0 ratingsMicrosoft Office 365: Exchange Online Implementation and Migration Rating: 0 out of 5 stars0 ratingsMicrosoft System Center Endpoint Protection Cookbook - Second Edition Rating: 0 out of 5 stars0 ratingsMicrosoft Exchange 2010 PowerShell Cookbook Rating: 0 out of 5 stars0 ratingsMastering System Center Configuration Manager Rating: 0 out of 5 stars0 ratingsHigh Availability MySQL Cookbook Rating: 0 out of 5 stars0 ratingsWindows Failover Clustering Design Handbook Rating: 0 out of 5 stars0 ratings
System Administration For You
Cybersecurity: The Beginner's Guide: A comprehensive guide to getting started in cybersecurity Rating: 5 out of 5 stars5/5CompTIA A+ Complete Review Guide: Core 1 Exam 220-1101 and Core 2 Exam 220-1102 Rating: 5 out of 5 stars5/5Linux: Learn in 24 Hours Rating: 5 out of 5 stars5/5Improve your skills with Google Sheets: Professional training Rating: 0 out of 5 stars0 ratingsArduino: A Quick-Start Beginner's Guide Rating: 4 out of 5 stars4/5Learn Windows PowerShell in a Month of Lunches Rating: 0 out of 5 stars0 ratingsLinux Command-Line Tips & Tricks Rating: 0 out of 5 stars0 ratingsLearn PowerShell in a Month of Lunches, Fourth Edition: Covers Windows, Linux, and macOS Rating: 0 out of 5 stars0 ratingsPowerShell: A Comprehensive Guide to Windows PowerShell Rating: 4 out of 5 stars4/5Linux Bible Rating: 0 out of 5 stars0 ratingsPractical Data Analysis Rating: 4 out of 5 stars4/5Learn SQL Server Administration in a Month of Lunches Rating: 3 out of 5 stars3/5Bash Command Line Pro Tips Rating: 5 out of 5 stars5/5Learn Git in a Month of Lunches Rating: 0 out of 5 stars0 ratingsLinux Commands By Example Rating: 5 out of 5 stars5/5Building a Plex Server with Raspberry Pi Rating: 0 out of 5 stars0 ratingsLearn PowerShell Scripting in a Month of Lunches Rating: 0 out of 5 stars0 ratingsMastering Windows PowerShell Scripting Rating: 4 out of 5 stars4/5Summary of Lights Out: by Ted Koppel | Includes Analysis Rating: 0 out of 5 stars0 ratingsPowerShell: A Beginner's Guide to Windows PowerShell Rating: 4 out of 5 stars4/5Git Essentials Rating: 4 out of 5 stars4/5Linux for Beginners: Linux Command Line, Linux Programming and Linux Operating System Rating: 4 out of 5 stars4/5Ethical Hacking Rating: 4 out of 5 stars4/5Mastering Linux Shell Scripting Rating: 4 out of 5 stars4/5CompTIA A+ Certification Rating: 2 out of 5 stars2/5CompTIA A+ Complete Practice Tests: Core 1 Exam 220-1101 and Core 2 Exam 220-1102 Rating: 0 out of 5 stars0 ratingsWorking with Linux – Quick Hacks for the Command Line Rating: 5 out of 5 stars5/5
Reviews for Microsoft IIS 10.0 Cookbook
0 ratings0 reviews
Book preview
Microsoft IIS 10.0 Cookbook - Ashraf Khan
Microsoft IIS 10.0 Cookbook
Task-oriented recipes to manage your web server with ease
Ashraf Khan
BIRMINGHAM - MUMBAI
Microsoft IIS 10.0 Cookbook
Copyright © 2017 Packt Publishing
All rights reserved. No part of this book may be reproduced, stored in a retrieval system, or transmitted in any form or by any means, without the prior written permission of the publisher, except in the case of brief quotations embedded in critical articles or reviews.
Every effort has been made in the preparation of this book to ensure the accuracy of the information presented. However, the information contained in this book is sold without warranty, either express or implied. Neither the author, nor Packt Publishing, and its dealers and distributors will be held liable for any damages caused or alleged to be caused directly or indirectly by this book.
Packt Publishing has endeavored to provide trademark information about all of the companies and products mentioned in this book by the appropriate use of capitals. However, Packt Publishing cannot guarantee the accuracy of this information.
First published: June 2017
Production reference: 1220617
Published by Packt Publishing Ltd.
Livery Place
35 Livery Street
Birmingham
B3 2PB, UK.
ISBN 978-1-78712-667-1
www.packtpub.com
Credits
About the Author
Ashraf Khan works as the Head Of Network Operating System Unit, with a diverse background in production systems, Network Administration, and Solutions Architecture. He has the MCSE-Server, MCSE-Messaging, MCSE-Cloud, CCNA, ITIL & Prince2 certifications. He has more than 13 years of experience in sectors such as IT infrastructure and private and government sectors located in India and the UAE and remote support for USA and worldwide for physical and virtual server environment IT management, implementation, planning, disaster recovery, testing, and technical support.
I would like to express my gratitude to the many people who saw me through this book and to all those who provided support, talked things over, read, wrote, offered comments, allowed me to quote their remarks, and assisted in the editing, proofreading, and design.
I would like to thank my editors Heramb Bhavsar and Sharon Raj and reviewer, Anwarul Haque, for enabling me to publish this book. Above all, I want to thank my wife, Shama, and the rest of my family, who supported and encouraged me in spite of all the times it took me away from them. It was a long and difficult journey for them.
I would like to thank Sharon Raj for helping me in the process of selection and editing. Thanks to Packt who encouraged me.
Last but not least, I beg forgiveness of all those who have been with me over the years and whose names I have failed to mention.
About the Reviewer
Anwarul Haque has been creating applications professionally since 2004. Haque has worked as a consultant for over 12 years in the enterprise and consumer domains. He is a Microsoft SharePoint 2007 Application Development certified since 2007, Microsoft Dynamics NAV 2013 C/Side Development certified since 2014, and Microsoft Certified Professional Developer since 2014. He also worked on SharePoint 2010 and 2013 offline premises, online SharePoint Office 365, and IIS Server management with hosting management skills at the administration level. He managed web servers at various platforms and technology applications hosted on Windows IIS Server, Azure Server, and Unix Server. Apart from IIS Server, he also managed and hosted websites on Apache Tomcat Server.
In the development area, he has worked on various IDEs, tools, and technologies, such as Microsoft Office Designer applications for SharePoint development, Microsoft CRM Portal, ASP.Net, VB.Net, ADO.Net, WCF, SSRS, ASP 3.0, Entity Framework, SQL Server 2005, 2008, 2012, 2015, Oracle, Visual Basic 6.0 & VBA macro, VB Script, JavaScript, Ajax, jQuery, dynamic Excel reports and charts, and add-on developers for Microsoft Office products. He has also used subversion control tools such as Microsoft Visual SourceSafe, SVN, and the IBM Rational ClearCase tool.
As a professional, he has worked with small and large enterprises in Matrix InfoSoft, MetaOption LLC, and currently works as a software analyst in GCE Solutions, which is based in New Delhi.
You can follow him on LinkedIn at https://www.linkedin.com/in/anwarul-haque-b4824b21/.
I would like to thank my lovely wife, Zeenat Haque, for her patience, support, and understanding!
www.PacktPub.com
For support files and downloads related to your book, please visit www.PacktPub.com.
Did you know that Packt offers eBook versions of every book published, with PDF and ePub files available? You can upgrade to the eBook version at www.PacktPub.com and as a print book customer, you are entitled to a discount on the eBook copy. Get in touch with us at service@packtpub.com for more details.
At www.PacktPub.com, you can also read a collection of free technical articles, sign up for a range of free newsletters and receive exclusive discounts and offers on Packt books and eBooks.
https://www.packtpub.com/mapt
Get the most in-demand software skills with Mapt. Mapt gives you full access to all Packt books and video courses, as well as industry-leading tools to help you plan your personal development and advance your career.
Why subscribe?
Fully searchable across every book published by Packt
Copy and paste, print, and bookmark content
On demand and accessible via a web browser
Customer Feedback
Thanks for purchasing this Packt book. At Packt, quality is at the heart of our editorial process. To help us improve, please leave us an honest review on this book's Amazon page at https://www.amazon.com/dp/1787126676.
If you'd like to join our team of regular reviewers, you can e-mail us at customerreviews@packtpub.com. We award our regular reviewers with free eBooks and videos in exchange for their valuable feedback. Help us be relentless in improving our products!
Table of Contents
Preface
What this book covers
What you need for this book
Who this book is for
Sections
Getting ready
How to do it…
How it works…
There's more…
See also
Conventions
Reader feedback
Customer support
Downloading the example code
Downloading the color images of this book
Errata
Piracy
Questions
Integrating IIS 10.0 with Windows Server 2016
Introduction
Understanding IIS 10.0
Basic requirements of IIS 10.0
OS requirements
Hardware requirements
Windows Server 2016
Windows 10
Operating system media
IIS 10.0 architecture
Getting ready
How to do it...
How it works...
Introducing the IIS 10.0 architecture's components and modules
Overview of an HTTP request
Details of an HTTP request inside the worker process
Installing IIS 10.0 on Windows Server 2016
Getting ready
How to do it…
How it works...
IIS Manager
Getting ready
How to do it...
How to manage remote IIS?
How it works...
Basic configuration of IIS 10.0
Getting ready
How to do it...
How it works...
Hosting static web page
Getting ready
How to do it...
How it works...
Testing a static-page website
Getting ready
How to do it...
How it works...
Creating an Application Pool in IIS 10.0
Introduction
Understanding application pools in IIS 10.0
Getting ready
How to do it...
How it works...
Installation of lower framework version
Getting ready
How to do it...
How it works...
Creating different application pools in IIS 10.0
Getting ready
How to do it...
How it works...
Configuration of application pool on IIS 10.0
Getting ready
How to do it...
How it works...
Hosting .NET web page
Getting ready
How to do it...
How it works...
Hosting different versions of a .NET website
Getting ready
How to do it...
How it works...
Testing different versions of a website
Getting ready
How to do it...
How it works...
Hosting Multiple Websites on IIS 10.0
Introduction
Hosting multiple websites
Getting ready
How to do it...
How it works...
Creating a website folder
Getting ready
How to do it...
How it works...
Configuring websites
Getting ready
How to do it...
How it works..
Configuring ports
Getting ready
How to do it...
How it works..
Configuring the website IP
Getting ready
How to do it...
How it works...
Deploying websites
Getting ready
How to do it...
How it works...
Testing websites
Getting ready
How to do it...
How it works...
Constructing Virtual Directories in IIS 10.0
Introduction
Constructing a virtual directory in IIS 10.0
Getting ready
How to do it...
How it works...
Understanding IIS 10.0 virtual directories
Getting ready
How to do it...
How it works...
Configuring virtual directories in IIS 10.0
Getting ready
How to do it...
How it works...
Configuring virtual directories with different application pools
Getting ready
How to do it...
How it works...
Uploading a .NET web page
Getting ready
How to do it...
How it works...
Testing the uploaded web page
Getting ready
How to do it...
How it works...
Installing HTTP/2 on IIS 10.0
Introduction
Understanding HTTP/2
Getting ready
How to do it...
How it works...
Installing HTTP/2 on IIS 10.0
Getting ready
How to do it...
How it works...
Configuring HTTP/2 on IIS 10.0
Getting ready
How to do it...
How it works...
Uploading .NET web pages
Getting ready
How it do it...
How it works...
Testing uploaded web pages
Getting ready
How to do it...
How it works...
Getting Your Wildcard Host Up and Running
Introduction
Understanding wildcard hosts
Getting ready
How to do it...
How it works...
Creating a wildcard host
Getting ready
How to do it...
How it works...
Configuring a wildcard host
Getting ready
How to do it...
How it works...
Uploading .NET web pages to a wildcard host
Getting ready
How to do it...
How it works...
Testing uploaded website pages
Getting ready
How to do it...
How it works...
Deploying IIS 10.0 on Nano Server
Introduction
Understanding IIS 10.0 on Nano Server
Getting ready
How to do it...
How it works...
Installing IIS 10.0 on Nano Server
Getting ready
How to do it...
How it works...
Managing IIS 10.0 on Nano Server
Getting ready
How to do it...
How it works...
Creating an IIS 10.0 website on Nano Server
Getting ready
How to do it...
How it works...
Configuring an IIS 10.0 website on Nano Server
Getting ready
How to do it...
How it works...
Uploading website pages
Getting ready
How to do it...
How it works...
Testing uploaded web pages
Getting ready
How to do it...
How it works...
Configuring IIS Administration with PowerShell Cmdlets
Introduction
IIS administration with PowerShell cmdlets
Getting ready
How to do it...
How it works...
Creating an advanced IIS 10.0 website on Nano Server
Getting ready
How to do it...
How to do it...
Configuring IIS 10.0 websites on Nano Server
Getting ready
How to do it...
How it works...
Uploading IIS 10.0 websites to Nano Server
Getting ready
How to do it...
How it works....
Testing uploaded web pages
Getting ready
How to do it...
How it works...
Enabling ASP.NET Core with IIS on Nano Server
Introduction
Understanding ASP.NET Core with IIS on Nano Server
Getting ready
How to do it...
How it works...
Configuring ASP.NET Core with IIS on Nano Server
Getting ready
How to do it...
How it works...
Creating an IIS 10.0 virtual directory on Nano Server
Getting ready
How to do it...
How it works...
Configuring a virtual directory in IIS 10.0
Getting ready
How to do it...
How it works...
Uploading and testing web pages in a virtual directory
Getting ready
How do to it...
How it works...
Installing and Configuring SSL Websites
Introduction
Understanding SSL websites in IIS 10.0
Getting ready
How to do it...
How it works...
Installing SSL
Getting ready
How to do it...
How it works...
Creating an SSL certificate
Getting ready
How to do it...
How it works...
Configuring websites with an SSL port and certificate
Getting ready
How to do it...
How it works...
Using PowerShell commands to create SSL certificates
Getting ready
How to do it...
How it works...
Testing SSL websites
Getting ready
How to do it...
How it works...
Extending IIS 10.0 to FTP
Introduction
Understanding FTP
Getting ready
How to do it...
How it works...
Installing FTP on IIS 10.0
Getting ready
How to do it...
How it works...
Creating, securing, and configuring an FTP site
Getting ready
How to do it...
How it works...
Creating an FTP user and managing user permissions
Getting ready
How to do it...
How it works...
Testing our FTP server
Getting ready
How to do it...
How it works...
Securing Your Websites on IIS 10.0
Introduction
Understanding available security on IIS 10.0
Getting ready
How to do it...
How it works...
Configuring security on IIS 10.0
Getting ready
How to do it...
How it works...
URL authorization and authentication
Getting ready
How to do it...
How it works...
IP address and domain restrictions
Getting ready
How to do it...
How it works...
Testing security on IIS 10.0
Getting ready
How to do it...
How it works...
Managing and Troubleshooting IIS 10.0
Introduction
Managing IIS 10.0
Getting ready
How to do it...
How it works...
Installing Health, Diagnostics, and Performance features
Getting ready
How to do it...
How it works...
Configuring Health and Diagnostics
Getting ready
How to do it...
How it works...
Configuring Failed Request Tracing Rules
Getting ready
How to do it...
How it works...
Configuring static content compression
Getting ready
How to do it...
How it works...
Preface
IIS 10.0 is the latest version of Internet Information Services (IIS), which is an extensible web server developed by Microsoft. IIS 10.0 was introduced with Windows Server 2016 and the Windows 10 operating system. New features of IIS