IIS Install and Configuration Class Activity - Hsanokklis/2023-2024-Tech-journal GitHub Wiki

Copy and Start-up WinSrv01-Base.ova VM

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

image

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

image

  • In the Physical path box or click the browse button (...) to navigate the file system
  • Browse to c:\inetpub and Make a New Folder called SEC260Site

image

  • 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"

image

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.
  • 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

image

  • 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

image

image

View accessing the server in the logs

image

you can do this by going to `C:\inetpub\logs\LogFiles

Questions to answer

What is the default user account that runs IIS?

Where is the path of the default location for websites with IIS?

What is the default path for web server logs?