Week4Workshop 93472

Download as docx, pdf, or txt
Download as docx, pdf, or txt
You are on page 1of 14

Network and Operating System

Week 4 Workshop
Objective:
The objective of this workshop is to install roles and features in windows server 2022 that helps
to host a static website.
Requirements: Download a template using www.free-css.com and extract it. Create a folder in
C drive and copy all the extracted files in that folder.
Step 1; Open windows server’s server manager dashboard and click on “Add roles and
features”
Network and Operating System

Step 2; Now click on next button

Step 3; Tick “Role-based or feature-based installation”


Network and Operating System

Step4;Click on next button without changing any setting on this page

Step 5; Tick on “Web Server (IIS)” feature.


To host a website, we need to add a new role in server that we call it Web Server. This lets
us to host web application over server.
Network and Operating System

Step 6; Click on “Add Features” Button

Step 7; Now Web server role has been added. Now click on next.
Step 8; Again click next leaving all default values.
Network and Operating System

Step 9; Click on next button

Step 10; Click next button without changing all value.


Network and Operating System

Step 11; Tick on “Restart the destination server automatically if required” and press Yes
button.
Network and Operating System

Step 12; Now it will take some time to get installed required features.
Network and Operating System

Step 13; We have successfully installed Web Server role in windows Server. Now click on
Tools menu in Server Manager Dashboard and find for “Internet Information
Services(IIS)” and click on it.
Network and Operating System

Step 14; The IIS manager will be now open. We can see our server name on the left pane of
the manager.

Step 15; Click on dropdown button. Now you may see “Sites” option. Again click on drop

down button near Sites menu.


Network and Operating System

Step 16; As we can see there is only One web site which is default website. Now we are
going to add new website. Right click on “Sites” and click on “Add Website”.
Network and Operating System

Step 17; Now we need to enter site credentials.


Give name “mysite.local” on Site name,
On Physical path select the folder where our website file are located
On Host name we need to type “mysite.local”
Network and Operating System

Step 18; Now we can see our site has been listed. We can browse our site by typing
“mysite.local” on addressbar of web browser in windows server.

Step 19; If you faced this issue then we don’t have to worry. It means we need to register
our site in host file too.
Network and Operating System

Step 20; To register our site in host file, we need to open the hosts file in notepad which is
located at the following path: C/Windows/System32/drivers/etc/hosts.
Now open that hosts file using notepad.

Step 21; Add the following line at the end of the file:
127.0.0.1 mysite.local
And save it.
Network and Operating System

Step 22; Now reload the webpage. Boom our website has been loaded.

You might also like