Set up and Configure IIS on Windows Server 2022

In this guide from the Windows Tutorials, we want to teach you to Set up and Configure IIS on Windows Server 2022.

Windows Server 2022 is the tenth and latest major LTSC release of the Windows Server operating system by Microsoft, as part of the Windows NT family of operating systems.

Internet Information Services (IIS) is a flexible, general-purpose web server from Microsoft that runs on Windows systems to serve requested HTML pages or files.

An IIS web server accepts requests from remote client computers and returns the appropriate response. This basic functionality allows web servers to share and deliver information across local area networks (LAN), such as corporate intranets, and wide area networks (WAN), such as the Internet.

Steps To Set up and Configure IIS on Windows Server 2022

To install IIS on your Windows server 2022 follow the steps below:

Install IIS on Windows Server 2022

1- From your start menu, type server manager and open it.

2- In your server manager dashboard click on the Add roles and features:

Server manager

3- Click next to continue on the Before you begin window:

server manager-2

4- In the Select installation type window, you should click on the Role-based or feature-based installation and press next to continue:

Installation type window

5- At this step, you need to select the destination server. As you are set up IIS on your local machine, choose Select a server from the server pool and press Next.

On the other hand, you can select another server that you are managing from here or a VHD.

Select destination server for IIS

6- Now on the Select server roles check the box next to the Web Server (IIS):

Server roles ( IIS web server)

6- This will open a new window advising that additional features are required, click the Add Features button to install these as well. Click Next back on the Select Server roles menu when this is complete:

Add feature roles for IIS

7- At this point, you don’t need to install any additional features. So click next to continue.

8- Read the information about the IIS web server role and press next.

9- Here on the Select role services window, you can install additional services for IIS. You can always come back and add more later, so press next to install the defaults:

Role services for IIS

10- In the Confirm installation selections window, review the items that are to be installed and click Install when you’re ready to proceed with installing the IIS web server on your Windows server 2022:

Confirm IIS installation

Note: With the standard IIS installation, no reboot should be required. If you remove the role a reboot will be needed.

11- When your IIS installation is completed, press the close button.

Access IIS Default Page

At this point, IIS should be running on port 80 by default with the firewall rule HTTP traffic enabled in Windows firewall automatically.

Now you can access the default IIS page by typing your server’s IP address in your web browser:

http://server-ip-address
access default IIS page

If you see this page means that you have set up IIS on your Windows server 2022 correctly.

By installing IIS, a website called Default Web Site is created by default, which can be used to test the health of IIS.

This website is configured to respond to user requests from the HTTP protocol over port 80.

In this guide, you are going to use the default site by getting to know where its document root is and how to host a simple website within it.

To configure the default site in IIS on Windows Server 2022, follow the steps below.

Configure the Default Site in IIS Server 2022

1- Open your server manager and click on the tools option and choose the Internet Information Services (IIS) Manager.

2- You need to expand the server name:

Expand the server name

3- Then, expose the default site on IIS server 2022:

Expose the default site

You will see the Default website icon:

IIS Default website on Windows Server 2022

The default site on IIS server 2022 stores its files in a particular directory. To display this information, double click on it, choose the Manage Website then, choose the Advanced settings:

Advanced settings of Default website

This will open a window with all of the Default Sites information such as files or Document Root. If you click on “Physical Path”, you can choose a different document root.

Physical path - IIS on Windows server 2019

4- The “Default documents” feature in IIS Server 2022 helps you to specify the default files to return when a client does not request a specific file from the web server. Double-click on it to check the files shown.

Default document for IIS on Windows server 2022

You will see:

display IIs default document on Windows server 2022

5- Now create an index.html file in the document root and check if it gets loaded in IIS server 2022.

To do this, open your notepad and add the following HTML code to it:

<html>
<head>
<title>Welcome To IIS!</title>
</head>
<body>
<h1>Success! It is working correctly!</h1>
</body>
</html>

Then, save it to the below path:

This PC>Local Disk(C):>inetpub>wwwroot

In your web browser type your server’s IP address:

http://server-ip-address

You will see a page like this:

Default website for IIS server 2022

If you see this page means that it loaded successfully.

https://www.youtube.com/embed/kYPfMSUzNhU
Set Up IIS on Windows Server 2022 Video

Conclusion

IIS is compared with Apache, which is also a kind of web server that is freely available to everyone. We can simply say that both work the same except that Apache can be used almost on any operating system such as Windows, Linux, and Mac, While the IIS is only available for Windows.

Here you learn to Set up and Configure IIS on your Windows server.

Hope you enjoy it.

Also, you may be like these articles:

Install and Configure Apache on Windows Server 2022

Install and Run Nginx on Windows Server 2022

Newsletter Updates

Enter your email address below and subscribe to our newsletter

30 Comments

  1. Wow, wonderful blog layout! How long have you been blogging for? you made blogging look easy. The overall look of your site is magnificent, as well as the content!

  2. Nice post. I was checking constantly this blog and I am impressed! Very useful information specifically the last part 🙂 I care for such info a lot. I was looking for this certain information for a long time. Thank you and best of luck.

  3. Hi! This post could not be written any better! Reading this post reminds me of my old room mate! He always kept chatting about this. I will forward this post to him. Pretty sure he will have a good read. Thanks for sharing!

  4. Everyone loves what you guys are usually up too. This sort of clever work and reporting! Keep up the awesome works guys I’ve incorporated you guys to my own blogroll.

  5. It’s hard to find well-informed people on this topic, however,you seem like you know what you’re talking about! Thanks

  6. Hello there, just became aware of your blog through Google, and found that it is truly informative. I am gonna watch out for brussels. I’ll appreciate if you continue this in future. Lots of people will be benefited from your writing. Cheers!

  7. Great post. I was checking constantly this blog and I’m impressed! Very useful info particularly the last part 🙂 I care for such information much. I was seeking this particular information for a very long time. Thank you and best of luck.

Leave a Reply

Your email address will not be published. Required fields are marked *

Stay informed and not overwhelmed, subscribe now!