IIS Install and Configuration Class Activity - Hsanokklis/2023-2024-Tech-journal GitHub Wiki
Copy and Start-up WinSrv01-Base.ova VM
- Download at https://drive.google.com/file/d/1r7xFvOEYl-TS-F1XVT95TGyaCk2wV9r7/view?usp=sharing
- Open VMware Workstation
- Navigate to Open WinSrv01-Base1.ova
- Import it
- Launch VM in VMWare Workstation
- check for bridged networking w/4G RAM
- Login as
sec260:2616
Install IIS on Windows Server
- In Server Manager
- select Dashboard
- click configure the local server Add roles and features
- In Add Roles and Features Wizard
- on the Before you begin page, click next
- On the Select Installation Type page
- Select Role-based or Feature-based installation and click Next
- On the Select Server Roles page, select Web Server(IIS)
- Make sure Include Management Tool option is checked
- click Add Features
- click next
- On the Select Features page notice the preselected features, and then click next
- On the Web Server Role (IIS) page, click next
- On the Select Role Services page, note the preselected role services, and then click next
- Click Install which will build a static-content web server
- On the Installation Progress page, confirm that your installation of the Web Server (IIS) role and required role services completed successfully, and then click Close.
- To verify that IIS installed successfully, enter the following into a web browser on your Windows 10 Workstation:
http://<IP_Address_of_your_Windows_server >
- you should see the IIS welcome page
Add a Website to IIS
- Open IIS Manager
- Go to the Connections pane
- right click on the sites* node in the tree under the server name
- click add website
- In the Physical path box or click the browse button (...) to navigate the file system
- Browse to
c:\inetpub
and Make a New Folder calledSEC260Site
- Accept the defaults for the Bindings to have the server run on port 80
- Check "Start Website Immediately" and click OK
- Accept warning for duplicate binding - this means that our new site will be used instead of the default site.
- From IIS Manager - Highlight Default Website and click "Stop"
- Then, Highlight your new website and click "Start"
Configure Anonymous Authentication
Helpful website: https://learn.microsoft.com/en-us/previous-versions/orphan-topics/ws.11/hh831515(v=ws.11)?redirectedfrom=MSDN#Anchor_3
Anonymous authentication gives users access to the public areas of your website without prompting them for a user name or password. You can configure anonymous authentication by using the default anonymous user account (IUSR), or you can set up a local user account for anonymous users.
- In Home view for your website in IIS Manager, double-click Authentication
- On the authentication page, select Anonymous Authentication
- In the actions pane, click edit to set the security principle (user credentials) under which anonymous users will connect to the site.
- In the Edit Anonymous Authentication Credentials dialog box, select one of the following options:
- We want IIS to run by using the account that is currently specified on the property page for the application pool, select Application pool identity. By default, this identity is the IUSR account.
- Click OK
Set "Default Document"
-
Open notepad
-
add some text to a file like: "SEC260 Test Page for Hannelore"
-
Within Notepad, save file as
sec260.html
on your desktop and make sure to change save as type to "any" or it iwll add an additional .txt- Then move the
.html
file to `C:\inetpub\SEC260Site.
- Then move the
-
Go to IIS Manager and Highlight your website
-
Double click Default Document: then add - Enter sec260.html
-
Move sec260.html to the top of the list
- Click on your website on the connections pane and then restart under manage website
- reload your page from a browser, you should see your text from the sec260.html file
View accessing the server in the logs
you can do this by going to `C:\inetpub\logs\LogFiles