Exercise 2: Configure Your Web Application

A first step in website configuration is to create folders and copy the application files onto the Server Core web server.

  1. Use the following commands to copy the test web application from the Win2K8R2Dev machine:

    mkdir c:\inetpub\test mkdir c:\inetpub\test\website xcopy \\10.0.0.1\SCRATCH\website\*.* c:\inetpub\test\website\*.* /S

  2. Also enable TCP Port 81 as we will access this website as https://10.0.0.3:81/website. This procedure may also be accomplished from a remote client machine using the MMC add-in “Windows Firewall with Advanced Security”.

    Netsh advfirewall firewall add rule name=”Port81” dir=in action=allow protocol=TCP localport=81

  3. Locate the Hyper-V management console on your hands-on-labs host machine. Open the virtual machine console onto the Win2K8R2Dev virtual machine.

    Note:
    The screen-capture graphics herein may differ slightly from your physical lab experience.

  4. Logon to the virtual machine, Win2K8R2Dev, using account student1.
  5. Once your Server Core machine has been configured to allow the remote management, connect remotely by starting the IIS Management Console via the Start-AdministrativeTools menu. Select the option to "Connect to a Server…" as follows:

    Figure 1

  6. On the first subsequent screen, enter the name of the Server you wish to connect to Win2K8R2Core (i.e. 10.0.0.3):

    Figure 2

  7. The next screen will ask for your user credentials on the remote server (i.e. student1, p@ssw0rd):

    Figure 3

  8. The final screen will ask you for the name the connection (enter “Win2K8R2Core”):

    Figure 4

    Your server will now be listed on the Connections pane and the Management Console can now be used to configure web sites and ASP.NET applications as with a standard IIS Server installation.

    Note:
    The screen-capture graphics herein may differ slightly from your physical lab experience.

    Figure 5

Part 1: Add the New Web Site

  1. Right-click the “Win2K8R2Core” node within the IIS Management Console tree-view and select “Add Web Site…”. Complete the dialog window as illustrated:

    Figure 6

Part 2: Add the New Web Application

  1. Expand the “Sites” node to display the new “test” web site. Right-click the “test” node and select “Add Application”. Complete the dialog windows as illustrated:

    Figure 7

Part 3: Enable Anonymous User Authentication

  1. Select the ".NET Authorization Rules" configuration wizard and open the "test" web site to all anonymous users as illustrated in the following two graphics:

    Figure 8

    Figure 9

Part 4: Browse to the New Web Application

  1. From the Win2K8R2Dev machine, open a browser window and navigate to the web application (https://10.0.0.3:81/website) as illustrated:

    Figure 10