Saturday, December 28, 2024
Google search engine
HomeGuest BlogsHow To Configure Default Site in IIS Server 2019

How To Configure Default Site in IIS Server 2019

.tdi_3.td-a-rec{text-align:center}.tdi_3 .td-element-style{z-index:-1}.tdi_3.td-a-rec-img{text-align:left}.tdi_3.td-a-rec-img img{margin:0 auto 0 0}@media(max-width:767px){.tdi_3.td-a-rec-img{text-align:center}}

This is a continuation of Install and Configure IIS Web Server on Windows Server 2019 guide. We 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. This way, you can easily upload your files and kick your site off without much fuss and configuration. We shall later take a look at adding virtual directories and creating new websites on the web server.

Step 1: Open Default Site

Open IIS Manager by opening “Server Manager“, clicking on “Tools” and choosing “Internet Information Services (IIS) Manager” from the drop-down menu. Once your IIS Manager is open, expand Server name below “Start Page” and further expand “Sites” folder to expose the default site.

Server Manager start
Server manager open iis manager from tools

Expand Server name

IIS Manager Opened

Expose the default site

IIS Manager expand sites
IIS Manager Default site exposed

Step 2: Check its files

The “Default Site” stores its files in a particular directory. To expose this information, right-click on it, choose “Manage Website” then “Advanced Settings” as illustrated below.

.tdi_2.td-a-rec{text-align:center}.tdi_2 .td-element-style{z-index:-1}.tdi_2.td-a-rec-img{text-align:left}.tdi_2.td-a-rec-img img{margin:0 auto 0 0}@media(max-width:767px){.tdi_2.td-a-rec-img{text-align:center}}

IIS Manager advanced settings

This will open a pop-up window with all of the Default Sites information such as files or Document Root as it is normally known, enabled protocols and even bindings. If you click on “Physical Path” a button appears on its extreme right where you can choose a different document root.

IIS Manager advanced settings 2

Step 3: Default documents

The “Default documents” feature in IIS Manager 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. They are in order of priority.

IIS Manager Default Document showed
IIS Manager Default Document place

Let us create an index.html file in the document root and check if it gets loaded.

index file in webroot

Checking it out on Browser

IIS New site loads

And it loaded successfully. Next, we shall look at how to create a Virtual Directory and make use of it. Stay tuned and thank you for staying to the end.

More on Windows server 2019:

.tdi_4.td-a-rec{text-align:center}.tdi_4 .td-element-style{z-index:-1}.tdi_4.td-a-rec-img{text-align:left}.tdi_4.td-a-rec-img img{margin:0 auto 0 0}@media(max-width:767px){.tdi_4.td-a-rec-img{text-align:center}}

RELATED ARTICLES

Most Popular

Recent Comments