Configure Default Site in IIS Server 2019

In this article, we want to teach you How To Configure the Default Site in IIS Server 2019.

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.

How To Configure the Default Site in IIS Server 2019

First, you need to install IIS on your windows server. To do this, you can follow our article about setting up IIS on Windows server 2019.

To configure the default site in IIS, follow the steps below.

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

server manager dashboard

2- You need to expand the server name:

Expand the server name

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

Expose the default site

You will see the Default website icon:

Default website

The default site on IIS server 2019 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 for IIS server 2019

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

Default document

You will see:

display default document for IIS server 2019

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

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 2019

If you see this page means that it loaded successfully.

Conclusion

At this point, you learn to Configure the Default Site in IIS Server 2019 to test the health of IIS.

Hope you enjoy it.

Related Articles

LEAVE A REPLY

Please enter your comment!
Please enter your name here

Latest Articles

POPULAR TAGS

Most Popular