lzdkfvnlkfsbnslfkbndlkndlfbn lzdkfvnlkfsbnslfkbndlkndlfbn...

24
LAB 2-2 70-643 LAB ANSWER KEY DEPLOYING A WEB SERVER This lab contains the following exercises: Exercise 2-2-1 Installing the Web Server (IIS) Role Exercise 2-2-2 Configuring Web Server Properties Exercise 2-2-3 Preparing Web Site Content Exercise 2-2-4 Creating Web Sites Exercise 2-2-5 Creating Virtual Directories Lab Review: Questions Lab Challenge: Creating Port Number Bindings Estimated lab time: 85 minutes BEFORE YOU BEGIN The classroom network consists of Windows Server 2008 student server A and B a connected to via an internal local area network. NT2670Srv##A the domain controller for the contoso.com domain, is running Windows Server 2008. Throughout the labs in this manual, you will install, configure, maintain, and troubleshoot application roles, features, and services on the NT2670Srv##A. 1

Upload: others

Post on 10-Oct-2019

0 views

Category:

Documents


0 download

TRANSCRIPT

Page 1: lzdkfvnlkfsbnslfkbndlkndlfbn lzdkfvnlkfsbnslfkbndlkndlfbn ...mywiley.info/.../ITTNT2670/resources/NT2670_Lab2-2_AnswerKe… · Web viewThe classroom network consists of Windows Server

LAB 2-2 70-643LAB ANSWER KEYDEPLOYING A WEB SERVERThis lab contains the following exercises:

Exercise 2-2-1 Installing the Web Server (IIS) Role Exercise 2-2-2 Configuring Web Server PropertiesExercise 2-2-3 Preparing Web Site ContentExercise 2-2-4 Creating Web SitesExercise 2-2-5 Creating Virtual DirectoriesLab Review: QuestionsLab Challenge: Creating Port Number Bindings

Estimated lab time: 85 minutes

BEFORE YOU BEGIN

The classroom network consists of Windows Server 2008 student server A and B a connected to via an internal local area network. NT2670Srv##A the domain controller for the contoso.com domain, is running Windows Server 2008. Throughout the labs in this manual, you will install, configure, maintain, and troubleshoot application roles, features, and services on the NT2670Srv##A.

To accommodate various types of classroom arrangements, each lab in this manual assumes that the student servers are in their baseline configuration, as described in Lab 1-2 “Preparing an Application Server.” If you have not done so already, complete the initial configuration tasks in Lab 1-2-1 before beginning this lab.

1

Page 2: lzdkfvnlkfsbnslfkbndlkndlfbn lzdkfvnlkfsbnslfkbndlkndlfbn ...mywiley.info/.../ITTNT2670/resources/NT2670_Lab2-2_AnswerKe… · Web viewThe classroom network consists of Windows Server

2 Windows Server 2008 Applications Infrastructure Configuration

Your instructor should have supplied the information needed to complete the following table:

Student computer name (NT2670Srv##A)

Student account name (Student##)

Working with Lab WorksheetsEach lab in this manual requires that you answer questions, save images of your screen, or perform other activities that you document in a worksheet named for the lab and task, such as lab2_2_worksheet. Your instructor provided you with lab worksheets. As you perform the tasks and exercises in each lab, open the appropriate worksheet file using WordPad, fill in the required information, and save the file to your computer’s Student##\Documents folder. Print a copy for your instructor.

The procedure for opening and saving a worksheet file is as follows:

1. Open worksheet document opens in WordPad.

2. Complete all of the exercises in the worksheet.

3. In WordPad, choose Save As from the File menu. The Save As dialog box appears.

4. In the File Name text box, key lab##_worksheet_yourname (where lab##_task## contains the number of the lab and task you’re completing, and yourname is your last name), and click Save.

5. Print a copy for your instructor.

Page 3: lzdkfvnlkfsbnslfkbndlkndlfbn lzdkfvnlkfsbnslfkbndlkndlfbn ...mywiley.info/.../ITTNT2670/resources/NT2670_Lab2-2_AnswerKe… · Web viewThe classroom network consists of Windows Server

70-643 Lab 2-2 Answer Key 3

Exercise 2-2-1 Installing the Web Server (IIS) RoleOverview In this exercise, you install IIS7 by adding the Web Server (IIS) role to

the computer.

Completion time 5 minutes

Question 1

Why is the Windows Process Activation Services needed to run the Web Server (IIS) role?

WPAS now handles incoming requests instead of the W3SVC service. This enables IIS7 to handle incoming requests that are based on protocols other than HTTP.

Page 4: lzdkfvnlkfsbnslfkbndlkndlfbn lzdkfvnlkfsbnslfkbndlkndlfbn ...mywiley.info/.../ITTNT2670/resources/NT2670_Lab2-2_AnswerKe… · Web viewThe classroom network consists of Windows Server

4 Windows Server 2008 Applications Infrastructure Configuration

Exercise 2-2-2 Configuring Web Server PropertiesOverview Using the default Web site that Windows Server 2008 creates during the

role installation, experiment with the various IIS7 site display options.

Completion time 15 minutes

Question 2

What conclusion can you draw from this result?

The IIS7 splash page must have been named iisstart.htm.

Page 5: lzdkfvnlkfsbnslfkbndlkndlfbn lzdkfvnlkfsbnslfkbndlkndlfbn ...mywiley.info/.../ITTNT2670/resources/NT2670_Lab2-2_AnswerKe… · Web viewThe classroom network consists of Windows Server

70-643 Lab 2-2 Answer Key 5

8. Press Ctrl+Prt Scr to take a screen shot of the Internet Explorer window showing the result of your page refresh. Press Ctrl+V to paste the image on the page provided in the lab2_2_worksheet file.

Page 6: lzdkfvnlkfsbnslfkbndlkndlfbn lzdkfvnlkfsbnslfkbndlkndlfbn ...mywiley.info/.../ITTNT2670/resources/NT2670_Lab2-2_AnswerKe… · Web viewThe classroom network consists of Windows Server

6 Windows Server 2008 Applications Infrastructure Configuration

Question 3

What do you predict will happen when you refresh the Internet Explorer page again? Why?

The IIS7 splash page will reappear because Default.htm is one of the files remaining in the Default Document list.

Question 4

What is the result this time? Why is the result different?

The IIS7 splash page appears because Deafult.htm is listed in the Default Document list.

Question 5

What is the result this time? Why is the result different?

The IIS7 splash page does not appear because iisstart.htm is still not listed in the Default Document list. Instead, a page containing a directory listing appears because you enabled directory browsing.

Page 7: lzdkfvnlkfsbnslfkbndlkndlfbn lzdkfvnlkfsbnslfkbndlkndlfbn ...mywiley.info/.../ITTNT2670/resources/NT2670_Lab2-2_AnswerKe… · Web viewThe classroom network consists of Windows Server

70-643 Lab 2-2 Answer Key 7

17. Press Ctrl+Prt Scr to take a screen shot of the Internet Explorer window showing the result of your page refresh. Press Ctrl+V to paste the image on the page provided in the lab2_2_worksheet file.

Question How is this error message page different from the previous

Page 8: lzdkfvnlkfsbnslfkbndlkndlfbn lzdkfvnlkfsbnslfkbndlkndlfbn ...mywiley.info/.../ITTNT2670/resources/NT2670_Lab2-2_AnswerKe… · Web viewThe classroom network consists of Windows Server

8 Windows Server 2008 Applications Infrastructure Configuration

6

one?

This error page is simpler and provides only the most basic information about the error.

23. Press Ctrl+Prt Scr to take a screen shot of the Internet Explorer window showing the result of your page refresh. Press Ctrl+V to paste the image on the page provided in the lab2_2_worksheet file.

Page 9: lzdkfvnlkfsbnslfkbndlkndlfbn lzdkfvnlkfsbnslfkbndlkndlfbn ...mywiley.info/.../ITTNT2670/resources/NT2670_Lab2-2_AnswerKe… · Web viewThe classroom network consists of Windows Server

70-643 Lab 2-2 Answer Key 9

Page 10: lzdkfvnlkfsbnslfkbndlkndlfbn lzdkfvnlkfsbnslfkbndlkndlfbn ...mywiley.info/.../ITTNT2670/resources/NT2670_Lab2-2_AnswerKe… · Web viewThe classroom network consists of Windows Server

10 Windows Server 2008 Applications Infrastructure Configuration

Exercise 2-2-3 Preparing Web Site ContentOverview Before you can create new Web sites on your IIS7 server, you must have

content to publish on them.

Completion time 15 minutes

Question 7

Why is it necessary to change the Save As Type value to All Files?

When IIS retrieves the content files from the Physical Path folder to publish them on the Website, it uses its own account, which does not have permission to access that folder. The Connect As dialog box provides IIS with the credentials it needs to access the content files, even when you are not logged on to the server.

Page 11: lzdkfvnlkfsbnslfkbndlkndlfbn lzdkfvnlkfsbnslfkbndlkndlfbn ...mywiley.info/.../ITTNT2670/resources/NT2670_Lab2-2_AnswerKe… · Web viewThe classroom network consists of Windows Server

70-643 Lab 2-2 Answer Key 11

16. Press Ctrl+Prt Scr to take a screen shot of the DNS Manager console showing the two CNAME records you created. Pess Ctrl+V to paste the image on the page provided in the lab2_2_worksheet file.

Page 12: lzdkfvnlkfsbnslfkbndlkndlfbn lzdkfvnlkfsbnslfkbndlkndlfbn ...mywiley.info/.../ITTNT2670/resources/NT2670_Lab2-2_AnswerKe… · Web viewThe classroom network consists of Windows Server

12 Windows Server 2008 Applications Infrastructure Configuration

Exercise 2-2-4 Creating Web SitesOverview To test IIS7’s ability to support multiple Web sites simultaneously,

create two new sites, and configure them to respond to different URLs.

Completion time 10 minutes

Page 13: lzdkfvnlkfsbnslfkbndlkndlfbn lzdkfvnlkfsbnslfkbndlkndlfbn ...mywiley.info/.../ITTNT2670/resources/NT2670_Lab2-2_AnswerKe… · Web viewThe classroom network consists of Windows Server

70-643 Lab 2-2 Answer Key 13

8. Press Ctrl+Prt Scr to take a screen shot of the Internet Information Services (IIS) Manager window showing the two Web sites you created. Press Ctrl+V to paste the image on the page provided in the lab2_2_worksheet file.

Question What happens?

Page 14: lzdkfvnlkfsbnslfkbndlkndlfbn lzdkfvnlkfsbnslfkbndlkndlfbn ...mywiley.info/.../ITTNT2670/resources/NT2670_Lab2-2_AnswerKe… · Web viewThe classroom network consists of Windows Server

14 Windows Server 2008 Applications Infrastructure Configuration

8The Web page you created containing the www##.contoso.com URL appears.

Page 15: lzdkfvnlkfsbnslfkbndlkndlfbn lzdkfvnlkfsbnslfkbndlkndlfbn ...mywiley.info/.../ITTNT2670/resources/NT2670_Lab2-2_AnswerKe… · Web viewThe classroom network consists of Windows Server

70-643 Lab 2-2 Answer Key 15

10. Press Ctrl+Prt Scr to take a screen shot of the Internet Explorer window. Press Ctrl+V to paste the image on the page provided in the lab2_2_worksheet file.

Page 16: lzdkfvnlkfsbnslfkbndlkndlfbn lzdkfvnlkfsbnslfkbndlkndlfbn ...mywiley.info/.../ITTNT2670/resources/NT2670_Lab2-2_AnswerKe… · Web viewThe classroom network consists of Windows Server

16 Windows Server 2008 Applications Infrastructure Configuration

Question 9

What happens now?

The Web page you created containing the sales##.contoso.com URL appears.

Question 10

How is IIS7 able to distinguish between the two URLs when the www## and sales## names resolve to the same IP address?

Web browsers send their HTTP request messages to the server’s IP address, and the message header contains the URL you keyed in the browser.

Question 11

Which Web page appears when you key the URL http://NT2670Srv##A.contoso##.com? Why?

The IIS7 splash page from the original default Website appears because the default site has no host name defined in its binding. The incoming request has server## as its host name, which IIS7 does not recognize, so it forwards the request to the default site.

Question 12

Which Web page appears when you key a URL containing the server’s IP address instead of a name? Why?

The IIS7 splash page from the original default Website appears because the default site has no IP address defined in its binding. The incoming request has the server’s IP address as its host name, which IIS7 does not recognize, so it forwards the request to the default site.

Page 17: lzdkfvnlkfsbnslfkbndlkndlfbn lzdkfvnlkfsbnslfkbndlkndlfbn ...mywiley.info/.../ITTNT2670/resources/NT2670_Lab2-2_AnswerKe… · Web viewThe classroom network consists of Windows Server

70-643 Lab 2-2 Answer Key 17

Exercise 2-2-5 Creating Virtual DirectoriesOverview In this exercise, use virtual directories to publish content found at a

different location as part of an existing Web site.

Completion time 15 minutes

Question 13

Why is the public folder you created accessible through the www## Web site?

The Public folder you created is subordinate to the root folder for the www## Website. IIS7 automatically publishes all folders subordinate to a Website’s root folder.

Question 14

What are the results of the authentication and authorization tests? Explain the results.

The authentication test passes, and the authorization test fails. The authorization fails because the IIS7 account does not have access to the C:\Users\Student##\Links folder.

Question 15

What are the results now?

The authentication and authorization tests complete successfully.

Question 16

What URL must you use in Internet Explorer to access the virtual directory you just created?

Use http://www##.contoso.com/Links.

Question What is the result?

Page 18: lzdkfvnlkfsbnslfkbndlkndlfbn lzdkfvnlkfsbnslfkbndlkndlfbn ...mywiley.info/.../ITTNT2670/resources/NT2670_Lab2-2_AnswerKe… · Web viewThe classroom network consists of Windows Server

18 Windows Server 2008 Applications Infrastructure Configuration

17The content of the Links folder appears.

Question 18

Why does the Links folder not appear?

You enabled Directory Browsing for www## at the site level, and sales## is a different site.

Page 19: lzdkfvnlkfsbnslfkbndlkndlfbn lzdkfvnlkfsbnslfkbndlkndlfbn ...mywiley.info/.../ITTNT2670/resources/NT2670_Lab2-2_AnswerKe… · Web viewThe classroom network consists of Windows Server

70-643 Lab 2-2 Answer Key 19

22. Press Ctrl+Prt Scr to take a screen shot of the Internet Information Services (IIS) Manager window. Press Ctrl+V to paste the image on the page provided in the lab2_2_worksheet file.

Page 20: lzdkfvnlkfsbnslfkbndlkndlfbn lzdkfvnlkfsbnslfkbndlkndlfbn ...mywiley.info/.../ITTNT2670/resources/NT2670_Lab2-2_AnswerKe… · Web viewThe classroom network consists of Windows Server

20 Windows Server 2008 Applications Infrastructure Configuration

LAB REVIEW: QUESTIONS

Completion time 5 minutes

1. In Exercise 2-2-2, you saw the two different types of error pages that IIS7 can generate. By default, the Web server displays detailed error pages in response to local requests and the simple error pages in response to remote requests. What is the main reason for providing less error information to remote users?

Detailed error message pages include information about the Web server and the computer running it that an unscrupulous individual might be able to use to compromise the Web server and its network.

2. In Exercise 2-2-3, you created two CNAME resource records in your domain using the DNS Manager console. Why was it necessary to create these records?

It was necessary to create resource records registering two different names for the Web server so that IIS could differentiate between the incoming requests intended for the two Websites you created.

3. In Exercise 2-2-3, why did you create CNAME resource records instead of standard Host (A) records in the DNS?

A CNAME resource record is an alias that equates one fully qualified domain name with another, while a Host record equates an FQDN with an IP address. By creating CNAME records and equating the alternative names with the server’s original FQDN (server##.contoso.com), the aliases remain valid, even if the computer’s IP address changes.

4. In Exercise 2-2-4, you configure your two new Web sites to use host name bindings. Why is this binding method preferable to using a different port number for each site?

Port number bindings require users to specify the alternative port number in their URLs.

Page 21: lzdkfvnlkfsbnslfkbndlkndlfbn lzdkfvnlkfsbnslfkbndlkndlfbn ...mywiley.info/.../ITTNT2670/resources/NT2670_Lab2-2_AnswerKe… · Web viewThe classroom network consists of Windows Server

70-643 Lab 2-2 Answer Key 21

LAB CHALLENGE: CREATING PORT NUMBER BINDINGS

Completion time 20 minutes

Your supervisor wants you to experiment with the different site binding strategies supported by IIS7. To complete this challenge, create a Web site called testsite##, containing the same type of dummy content you used earlier in this lab. The Web site must be accessible using any of the following URLs, where ## is replaced with the number assigned to your computer:

http://server##.contoso##.com:1024

http://testsite##.contoso##.com

http://testsite##.contoso##.com:1025

http://testsite##.contoso##.com

http://testsite##.contoso##.com:1026

Create a list of the tasks you must perform to achieve your goal, and take five separate screen shots of the Internet Explorer window, displaying each of the five URLs successfully connected to the site. Paste the images in the lab2_2_worksheet file.

1. Create a folder called testsite## in your Documents folder and a Default.htm file containing dummy content.

2. Create a new site called testsite## using the testsite## folder you created as the root.

3. Use the Connect As dialog box to supply the credentials that IIS7 will need to access the root folder.

4. For the first binding, use the Port value 1024, and leave the Host Name text box blank.

5. Open the Site Bindings dialog box, and create four additional bindings for the site.

6. For the second binding, use the Host Name value testsite##.contoso.com, and leave the default Port value of 80.

7. For the third binding, use the Host Name value testsite##.contoso.com, and change the Port value to 1025.

8. For the fourth binding, use the Host Name value testsite##.contoso##.com, and leave the default Port value of 80.

Page 22: lzdkfvnlkfsbnslfkbndlkndlfbn lzdkfvnlkfsbnslfkbndlkndlfbn ...mywiley.info/.../ITTNT2670/resources/NT2670_Lab2-2_AnswerKe… · Web viewThe classroom network consists of Windows Server

22 Windows Server 2008 Applications Infrastructure Configuration

9. For the fifth binding, use the Host Name value testsite##.contoso.com, and change the Port value to 1026.

10. Open the DNS Manager console and, in the contoso.com zone, create a CNAME record with the alias name testsite## and the target host NT2760Srv##.contoso##.com.

11. Create a new DNS zone called contoso##.com, and create a CNAME record in it with the alias name testsite## and the target host NT2760Srv##.contoso##.com.

Page 23: lzdkfvnlkfsbnslfkbndlkndlfbn lzdkfvnlkfsbnslfkbndlkndlfbn ...mywiley.info/.../ITTNT2670/resources/NT2670_Lab2-2_AnswerKe… · Web viewThe classroom network consists of Windows Server

70-643 Lab 2-2 Answer Key 23