6427 A Lab Manual
6427 A Lab Manual
6427 A Lab Manual
M I C R O S O F T
L E A R N I N G
P R O D U C T
6427A
Lab Instructions and Lab Answer Keys:
Configuring and Troubleshooting Internet
Information Services in Windows Server
2008
Information in this document, including URL and other Internet Web site references, is subject to change without notice.
Unless otherwise noted, the example companies, organizations, products, domain names, e-mail addresses, logos, people,
places, and events depicted herein are fictitious, and no association with any real company, organization, product, domain
name, e-mail address, logo, person, place or event is intended or should be inferred. Complying with all applicable copyright
laws is the responsibility of the user. Without limiting the rights under copyright, no part of this document may be
reproduced, stored in or introduced into a retrieval system, or transmitted in any form or by any means (electronic,
mechanical, photocopying, recording, or otherwise), or for any purpose, without the express written permission of Microsoft
Corporation.
Microsoft may have patents, patent applications, trademarks, copyrights, or other intellectual property rights covering subject
matter in this document. Except as expressly provided in any written license agreement from Microsoft, the furnishing of this
document does not give you any license to these patents, trademarks, copyrights, or other intellectual property.
The names of manufacturers, products, or URLs are provided for informational purposes only and Microsoft makes no
representations and warranties, either expressed, implied, or statutory, regarding these manufacturers or the use of the
products with any Microsoft technologies. The inclusion of a manufacturer or product does not imply endorsement of
Microsoft of the manufacturer or product. Links may be provided to third party sites. Such sites are not under the control of
Microsoft and Microsoft is not responsible for the contents of any linked site or any link contained in a linked site, or any
changes or updates to such sites. Microsoft is not responsible for webcasting or any other form of transmission received from
any linked site. Microsoft is providing these links to you only as a convenience, and the inclusion of any link does not imply
endorsement of Microsoft of the site or the products contained therein.
2008Microsoft Corporation. All rights reserved.
Microsoft, and Windows are either registered trademarks or trademarks of Microsoft Corporation in the United States and/or
other countries.
All other trademarks are property of their respective owners.
Module 1
Lab Instructions: Configuring an Internet Information
Services 7.0 Web Server
Contents:
Exercise 1: Installing IIS Using Role Manager
Lab: Con
nfigurin
ng an IIS
S 7.0 Web
W Serv
ver
Ex
xercise Ove
erview
In
n this exercise, you will learn how to install IIS 7.0 using Role Manager..
Th
his exercises main
m
tasks are:
1..
2..
3..
Start the 64
427A-NYC-SVR
R1 virtual machine and log on as LocalAdm
min.
Turn on Ne
etwork Discove
ery.
Install the Web
W server role.
Start 6427A
A-NYC-SVR1, and log on ass LocalAdmin with the passw
word of Pa$$w
w0rd.
f Task 2: Turn on
o Network
k Discovery
Open Netw
work and Sharing Center and turn on Ne
etwork Discov
very and File Sharing for alll public
networks.
Test functio
onality by load
ding http://loccalhost in the browser.
Results: After this exercise, you should have successfully verified that the Web Server (IIS) role is
installed and loaded the IIS Welcome page in Internet Explorer.
Exercise Overview
In this exercise, you will learn how to install IIS using unattended setup.
This exercises main tasks are:
1.
2.
3.
4.
Open Network and Sharing Center and turn on Network Discovery and File Sharing for all public
networks.
f Task 3: Create the Unattend.XML file by copying the default XML file provided and
removing unnecessary features
1.
2.
name="IIS-HttpRedirect" state="true"/>
name="IIS-ASP" state="true"/>
name="IIS-CGI" state="true"/>
name="IIS-ISAPIExtensions" state="true"/>
name="IIS-ISAPIFilter" state="true"/>
name="IIS-IIS6ManagementCompatibility" state="true"/>
name="IIS-Metabase" state="true"/>
name="IIS-WMICompatibility" state="true"/>
name="IIS-LegacyScripts" state="true"/>
name="IIS-LegacySnapIn" state="true"/>
f Task 4: Install IIS using Pkgmgr with the Unattend.XML file and verify once completed
1.
2.
3.
Results: After this exercise, you should have successfully installed IIS using an unattend file and
verified the IIS Welcome page.
Exercise Overview
In this exercise, you will learn how to install IIS via the command line in a Server Core environment.
This exercises main tasks are:
1.
2.
3.
On NYC-SVR2, in the command prompt window, type netsh firewall set opmode disable and press
Enter.
Type the following and then press Enter. Note that the feature names are case-sensitive:
Start /w pkgmgr /iu:IIS-WebServerRole;IIS-WebServer;IIS-CommonHttpFeatures;IISStaticContent;IIS-DefaultDocument;IIS-HttpErrors;IIS-HttpRedirect;WASWindowsActivationService;WAS-ProcessModel
2.
When the process completes, type echo %errorlevel%, and then press Enter.
Results: After this exercise, you should have successfully installed IIS on Microsoft Server 2008 Server
Core from the command line and verified by loading the IIS Welcome page from another machine
running Internet Explorer.
Exercise Overview
In this exercise, you will configure common IIS features and validate functionality.
This exercises main tasks are:
1.
2.
3.
Configure NYC-SVR1 for ASP debugging, detailed error messages, HTTP compression and SMTP
Service.
Configure NYC-SVR3 to trace server errors, enable directory browsing, enable windows authentication
and impersonation, configure UDDI, and enable dynamic output compression.
Configure NYC-SVR2 to have no default documents, and redirect requests to NYC-SVR1.
f Task 1: Configure NYC-SVR1 for ASP debugging, detailed error messages, and HTTP
compression
1.
2.
On NYC-SVR1, in Internet Information Services (IIS) Manager, under ASP Compilation settings,
enable Client-side and Server-side debugging. Enable Send Errors to Browser.
On NYC-SVR3, in Internet Explorer, browse to a page on NYC-SVR1 that does not exist, such as
http://nyc-svr1/default.asp to check error functionality.
f Task 2: Configure NYC-SVR3 to trace server errors, enable directory browsing, enable
windows authentication and impersonation, configure UDDI, and enable dynamic
output compression and SMTP
1.
On NYC-SVR3, in Internet Information Services (IIS) Manager, under Failed Request Tracing,
enable Failed Request Tracing.
2.
3.
4.
5.
Scroll down to <httpRedirect enabled="false" /> (approximately line 246), and modify this line
to read:
<httpRedirect enabled="true" exactDestination="false" childOnly="false"
destination="http://10.10.0.24/" />
2.
Results: After this exercise, you should have successfully configured and verified the configuration of
the three web servers.
Lab instructions: Configuring IIS 7.0 Web Sites and Application Pools
Module 2
Lab instructions: Configuring IIS 7.0 Web Sites and
Application Pools
Contents:
Exercise 1: Configuring Authentication Types
Lab instructions: Configuuring IIS 7.0 Web Sitees and Application Poools
LLab: Con
nfigurin
ng IIS 7..0 Web Sites an
nd Application
n
P
Pools
Exercise 1: Configurin
ng Authen
ntication Types
T
Sccenario
Yo
ou receive a se
ervice request from the Ente
erprise Design Team to organize the existin
ng NYC-WEB-A
A server
in
nto virtual directories by acce
ess level. There
e will be two access
a
levels: public
p
and restricted. Anyone
e on the
ne
etwork should be able to access the publicc content. Only authenticate
ed users should
d be able to acccess
re
estricted.
Ex
xercise Ove
erview
In
n this exercise, you will learn how to create
e virtual directo
ories and conffigure anonym
mous authenticcation.
Th
his exercises main
m
tasks are:
1..
2..
3..
4..
5..
Start the 64
427A-NYC-DC1 virtual mach
hine.
Start the 64
427A-NYC-WE
EB-A virtual ma
achine and log
g on as Woodg
grovebank\Administrator.
Add Basic, Windows
W
Integ
grated and Dig
gest Security features
f
to the
e IIS Role.
Create a virrtual directory named Publicc.
Configure the
t public virtu
ual directory fo
or anonymouss authenticatio
on.
Start 6427A
A-NYC-DC1.
Start 6427A
A-NYC-WEB-A
A, and log on as LocalAdmiin with the password of Pa$
$$w0rd.
Lab instructions: Configuring IIS 7.0 Web Sites and Application Pools
f Task 3: Add Basic, Windows Integrated and Digest Security features to the IIS Role
Use Server Manager to add the Basic Authentication, Windows Authentication, and Digest
Authentication role services to the Web server role.
Use Internet Information Services Manager to create a virtual directory named public pointing to
the physical directory c:\inetpub\public.
Use Internet Information Services Manager to make sure that Anonymous Authentication is
enabled for Public.
In Server Manager, enable the local Guest account, and allow Guest to log on locally.
Use Switch User to logon as NYC-WEB-A\Guest with no password.
Open http://localhost/public in the browser to verify that the local guest can browse to the public
directory.
Use Switch user to login as local administrator with password of Pa$$w0rd before continuing with
next exercise.
Results: After this exercise, you should have successfully verified that the Public directory is created. and
loaded the IIS Welcome page in Internet Explorer with the Guest account.
Lab instructions: Configuring IIS 7.0 Web Sites and Application Pools
Exercise Overview
In this exercise, you will learn how to create web sites and applications.
This exercises main tasks are:
1.
2.
3.
4.
On NYC-WEB-A, in IIS Manager, add a Web site named Woodgrove and set its physical path to
c:\inetpub\woodgrove, and its http port to 88.
f Task 3: Add the .NET 3.0 Feature and ASP.NET to the server
In IIS Manager, under Permissions, give Full Control to the security group
ITAdmins_WoodgroveGG.
Results: After this exercise, you should have successfully installed .NET 3.0 Framework, ASP.NET, and
created the Woodgrove site and copied its content.
Lab instructions: Configuring IIS 7.0 Web Sites and Application Pools
Exercise Overview
In this exercise, you will learn how to create an application pool.
This exercises main task is:
1.
Lab instructions: Configuring IIS 7.0 Web Sites and Application Pools
Exercise Overview
In this exercise, you will configure the application pools and validate functionality.
This exercises main tasks are:
1.
2.
3.
4.
5.
6.
7.
f Task 2: Configure WoodgrovePool and the Woodgrove site for Windows Integrated
authentication to allow all authenticated users
1.
2.
3.
In IIS Manager, configure the TempPool application pool to use LocalSystem as its worker process
identity.
In IIS Manager, stop the WoodgrovePool application pool and note the status.
Start the WoodgrovePool application pool and note the status.
Recycle WoodgrovePool and note the status.
In IIS Manager, configure the TempPool application pool to use the classic pipeline.
Lab instructions: Configuring IIS 7.0 Web Sites and Application Pools
In IIS Manager, configure the WoodgrovePool application pool to recycle after every 1000
requests, to log the number of requests, and set the Rapid Fail Failure Interval to 10 minutes.
Results: After this exercise, you should have successfully configured and verified the configuration of
the application pools.
Module 3
Lab Instructions: Configuring IIS 7.0 Application Settings
Contents:
Exercise 1: Configuring ASP.NET
Lab: Con
nfigurin
ng IIS 7..0 Appliication Setting
gs
Exercise 1: Configurin
ng ASP.NE
ET
Sccenario
Yo
ou receive a se
ervice request from the Ente
erprise Design Team to deplo
oy an application server. You
u need
to
o add and configure the ASP
P.NET role servvice, and Application Server role, on the Web
W Server. The
e server
w be available
will
e from the Inte
ernet and Saless Associates will
w need to log in with the usser name sale
es and
pa
assword supp
port from theiir clients sites to get contactt information for
f support. Th
his requires a medium
m
le
evel of securityy. If there is an error, the erro
or message retturned to the client
c
browser should direct the
usser to contact their district sales manager for login inforrmation.
Ex
xercise Ove
erview
In
n this exercise, you will learn how to add th
he ASP.NET ro
ole service and configure ASP
P.NET. You will
ch
hoose and con
nfigure the app
propriate auth
hentication mo
odel, and set up custom error pages to han
ndle
HTTP errors.
Th
his exercises main
m
tasks are:
1..
2..
3..
4..
5..
6..
Start the 64
427A-NYC-DC1 virtual mach
hine.
Start the 64
427A-NYC-WE
EB-A virtual ma
achine and log
g on as Woodg
grovebank\Administrator.
Add ASP.NET and Basic Security
S
feature
es to the IIS Ro
ole.
Create the SalesSupport application
a
an
nd copy the ASSP.NET application files.
Configure Basic
B
Security to
t allow access to authentica
ated Woodgro
ovebank doma
ain users.
Configure custom
c
error pages
p
for 401.a
aspx for 401 errors, and Other_Errors.aspx for all other errors.
Start 6427A
A-NYC-DC1, and
a log on as LocalAdmin
L
w the passw
with
word of Pa$$w
w0rd.
f Task 3: Add ASP.NET and Basic Security features to the IIS Role
On NYC-WEB-A, use Server Manager to add the ASP.NET and Basic Authentication role services.
f Task 4: Create the SalesSupport application and copy the ASP.NET application files
1.
2.
On NYC-WEB-A, use IIS Manager to add the SalesSupport application with a physical path of
c:\inetpub\wwwroot\SalesSupport.
Copy the application files from E:\Mod03\Labfiles\SalesSupport to
c:\inetpub\wwwroot\SalesSupport.
On NYC-WEB-A, use IIS Manager to disable Anonymous Authentication and enable Basic
Authentication for the domain and realm woodgrovebank.
Browse to http://localhost/salessupport. Notice that you are prompted for credentials. Enter user
name yvonne with password Pa$$w0rd.
Close and reopen the browser, and then browse again to http://localhost/salessupport. Try logging
in with credentials that do not have a domain account, such as user name Bob with no password.
Close the browser before continuing to the next task.
f Task 6: Configure custom error pages for 401.aspx for 401 errors, and Other_Errors.aspx
for all other errors
1.
2.
3.
4.
Results: After this exercise, you should have successfully verified that the ASP.NET role service is
installed, configured Basic authentication, and verified custom error pages in Internet Explorer.
Exercise Overview
In this exercise, you will learn how to configure ASP.NET application development settings.
This exercises main tasks are:
1.
2.
3.
4.
On NYC-WEB-A, in IIS Manager, modify the Connection Strings for the SalesSupport application
to use the following connection string as LocalResources:
data
source=.\SQLEXPRESS;AttachDbFileName=e:\mod03\labfiles\resources.mdf;IntegratedSecurit
y=True
f Task 2: Configure ASP.NET Session State settings to rename the cookie to SalesSupport
In IIS Manager, register a new custom control with the tag preface of Woodgrovebank. Set the
Namespace to TestControls and the Assembly to Version=1.0.0.0.
2.
3.
4.
5.
Results: After this exercise, you should have configured ASP.NET development settings and verified test
page functionality.
Exercise Overview
In this exercise, you will learn how to create an application pool.
This exercises main tasks are:
1.
2.
3.
4.
5.
6.
7.
8.
f Task 3: Use XCopy to deploy the files from the SalesSupport directory to the
SalesSupport_DE and SalesSupport_Test directories
At the command prompt, change to the c:\inetpub\wwwroot directory and then use XCopy to copy
the files and directory structure from SalesSupport to SalesSupport_De and SalesSupport_Test.
In IIS Manager, modify the SalesSupport, SalesSupport_De and SalesSuppot_Test to use their
correspondingly named application pools.
Disable anonymous authentication and enable basic authentication with the domain and realm of
woodgrovebank for both SalesSupport_De and SalesSupport_Test applications.
In IIS Manager, modify the SalesSupport and SalesSupport_De application pool recycling so that
they do not recycle on regular intervals.
In IIS Manager, modify the SalesSupport_Test application pool recycling to recycle every 1024
requests, and modify the Recycling Events to Log to log number of requests, On-Demand, and
Configuration Changes.
In IIS Manager, modify the SalesSupport .NET Compilation behavior settings so that Debug is
False.
3.
4.
5.
In IIS Manager, modify the SalesSupport_De .NET Globalization settings so that culture and UI
Culture are set to German (Germany) (de-DE).
Start Internet Explorer and browse to http://localhost/salessupport and enter user name yvonne
and password Pa$$w0rd. On a second and third tab, browse to http://localhost/salessupport_de
and http://localhost
/salesupport_test with yvonne's credentials so that all three applications are loaded in the browser.
Open Task Manager and note the instances of w3wp.exe.
In Internet Explorer, browse to http://localhost/salessupport_de/test.aspx and notice the date
format in the page.
Close Internet Explorer before continuing.
Results: After this exercise, you should have successfully deployed multiple applications with separate
application pools, configured recycling and debug settings, and configured and verified .Net
globalization settings.
Exercise Overview
In this exercise, you will configure ASP.NET security settings.
This exercises main tasks are:
1.
2.
3.
4.
5.
In IIS Manager, set the .NET Trust Level to Medium for the application SalesSupport_Test.
f Task 3: Configure File and Folder security so that only ITAdmins_WoodgroveGG can
access the Test.aspx page in SalesSupport
1.
2.
3.
4.
In IIS Manager, modify the permissions of SalesSupport\test.aspx so that permissions are not
inherited and only ITAdmins_WoodgroveGG is allowed.
In Internet Explorer, browse to http://localhost/salessupport/test.aspx and try to use the
credentials of yvonne as user name and password Pa$$w0rd.
Refresh the page and log in with a user account that is a member of ITAdmins_WoodgroveGG, such
as user name Betsy and password Pa$$w0rd.
Close Internet Explorer before continuing.
In IIS Manager, add all of the role services for Health and Diagnostics to the Web Server role.
In Notepad, open c:\inetpub\wwwroot\SalesSupport_Test\test.aspx.
a.
c.
5. In IIS Manager, enable Web Site Failed Request Tracing for the Default Web Site, and then add a
Failed Request Tracing Rule to trace ASP.NET for Status code 200 with verbose results.
6. Open Internet Explorer, and browse to http://localhost/salessupport_test
/test.aspx and use credentials of user name Betsy and password Pa$$w0rd if prompted.
7. In Internet Explorer, open the most recent fr######.xml file from
c:\inetpub\logs\failedreqlogfiles\w3svc. Examine the Errors and Warning section.
f Task 5: Configure Request Filtering so that only ASPX requests are processed
1.
2.
3.
4.
5.
6.
7.
Results: After this exercise, you should have successfully configured and verified the configuration of
the advanced security settings for ASP.NET.
Module 4
Lab Instructions: Configuring IIS 7.0 Modules
Contents:
Exercise 1: Configuring and Editing Native Modules
Lab: Con
nfigurin
ng and Editing
E
Modules
Exercise 1: Configurin
ng and Editing Nativ
ve Module
es
Sccenario
Yo
ou received a service requesst from the app
plication development team
m specifying the
e modules tha
at are
re
equired to install, test, and ru
un an application on the spe
ecified Web se
erver. To reducce the server fo
ootprint
an
nd vulnerabilitty, you must re
emove the unn
necessary mod
dules.
Ex
xercise Ove
erview
In
n this exercise, students will learn how to re
emove native modules from
m a Web serverr to improve se
ecurity
an
nd reduce the server footprint.
Th
he main tasks for this exercisse are as follow
ws:
1..
2..
3..
4..
5..
6..
7..
Start the 64
427A-NYC-WE
EB-B virtual ma
achine and log
g on as Administrator.
Backup the
e current Web server configu
uration.
Examine the modules currrently installed on the Web server.
Remove the
e Default Docu
ument Module
e and the Directory Listing Module.
M
Validate tha
at the module
es have been re
emoved and te
est the new se
erver configura
ation.
Restore the
e modules to the Web serverr configuration
n.
Validate tha
at the module
es have been re
estored and te
est the server configuration.
Start 6427A
A-NYC-WEB-B
B, and log on as Administra
ator with the password of Pa$$w0rd.
f Task 2: Backu
up the current Web serv
ver configurration
Open comm
mand prompt and use appcm
md to backup the server con
nfiguration.
f Task 4: Remove the Default Document Module and the Directory Listing Module
1.
2.
3.
4.
5.
f Task 5: Validate that the modules have been removed and test the new server
configuration
1.
2.
3.
Use IIS Manager to validate that the removed modules entries are missing.
Use Internet Explorer to check the default Web site.
Use Internet Explorer to retrieve the default Web page.
Open command prompt and use appcmd to restore the server configuration.
f Task 7: Validate that the modules have been restored and test the server configuration
Open command prompt and use appcmd to backup the server configuration.
Results: After this exercise, you should have successfully removed native modules from a Web server, and
then confirmed that the server operates as expected
Exercise Overview
In this exercise, students will learn how to add new managed modules to a Web server.
The main tasks for this exercise are as follows:
1.
2.
3.
4.
5.
6.
2.
3.
4.
C:\inetpub\ logging_module\
Source: E:\Mod04\Labfiles\logging_module
Port: 8181
Location: C:\inetpub\logging_module\logs
Use Internet Explorer to log into the default Web site and retrieve a confidential memo.
Email: [email protected]
Password: Pa$$w0rd
Attempt to view the Shared Documents folder again using Internet Explorer.
Results: After this exercise, you should have successfully added a managed module to the Web server.
Lab Instructions: Securing the IIS 7.0 Web Server and Web Sites
Module 5
Lab Instructions: Securing the IIS 7.0 Web Server and Web
Sites
Contents:
Exercise 1: Configure a Secure Web Server
Lab Instructions: Securinng the IIS 7.0 Web Server and Web Sites
Exercise 1: Configure
e a Secure Web Serve
er
Sccenario
Additional security measures need to be pu
ut in place to protect
p
the We
eb server. Thesse measures will
prrotect the Web
b server against unauthorize
ed access by sp
pecific IP addresses and dom
mains.
Additional ISAP
PI and CGI restrictions need to
t be put into place. Then yo
ou are given a list of accoun
nts
au
uthorized for a specific site. You must give
e separate acce
ess to the IT Admin group and the developer,
Herbert Dorner.
Th
he main tasks for this exercisse are as follow
ws:
1..
2..
3..
4..
5..
6..
7..
8..
9..
Start the 64
427A-NYC-DC1 virtual mach
hine and log on as Administrrator.
Start the 64
427A-NYC-WE
EB-B virtual ma
achine and log
g on as Administrator.
Create a self-signed serve
er certificate fo
or the Web serrver.
Block IP addresses as spe
ecified in the se
ervice request..
Examine the current ISAP
PI and CGI Resttrictions.
Install the .NET Framework 1.1.
Set ISAPI an
nd CGI restricttions to use ASSP.NET version
n 1.1.
Set the righ
hts and permisssions for Activve Directory ussers.
Test and va
alidate the new
w configuration
n.
Start 6427A
A-NYC-DC1.
Start 6427A
A-NYC-WEB-B
B, and log on as Administra
ator with the password of Pa$$w0rd.
Lab Instructions: Securing the IIS 7.0 Web Server and Web Sites
Using the IIS Manager, set IPv4 Address and Domain Restrictions.
Add a deny rule entry:
3.
Mask: 255.255.255.0
Using the IIS Manager, examine the ISAPI and CGI Restrictions.
2.
Installer: dotnetfix.exe
Installer: NDP1.1sp1-KB867460-X86.exe
f Task 7: Set ISAPI and CGI restrictions to use ASP.NET version 1.1
1.
2.
Using the IIS Manager, set the ISAPI and CGI Restrictions.
Allow ASP.NET v1.1.4322.
f Task 8: Set the rights and permissions for Active Directory users
Folder: C:\inetpub\wwwroot\
Location: WoodgroveBank.com
Lab Instructions: Securing the IIS 7.0 Web Server and Web Sites
Results: After this exercise, you should have successfully set IP restrictions, ISAPI and CGI restrictions,
and Active Directory permissions, as specified in a service request document
Lab Instructions: Securing the IIS 7.0 Web Server and Web Sites
Turn off the Web site cache for the shared documents folder.
Sign into the Woodgrove Bank Web site and retrieve the confidential memo.
Bypass the Web site forms authentication.
Modify the applicationHost.config file to handle forms authentication.
Reconfigure the authorization and authentication so that the protected content uses forms
authentication.
Test and validate the Web sites new configuration
f Task 1: Turn off the Web site cache for the shared documents folder
Name: Cache-Control
Value: no-cache
f Task 2: Sign into the Woodgrove Bank Web site and retrieve the confidential memo
1.
2.
Use Internet Explorer to log into the default Web site and retrieve a confidential memo.
Email: [email protected]
Password: Pa$$w0rd
Section: <configSections>
Original code:
<section name="authorization" overrideModeDefault="Allow" />
Replacement code:
Lab Instructions: Securing the IIS 7.0 Web Server and Web Sites
<section name="authorization"
type="System.WebServer.Configuration.UrlAuthorizationSection,
System.ApplicationHost, Version=7.0.0.0, culture=neutral,
PublicKeyToken=31bf3856ad364e35" overrideModeDefault="Allow" />
Change the Classic .NET application pool to Integrated mode in the applicationHost.config file:
Section: <applicationPools>
Original code:
<add name="Classic .NET AppPool" managedPipelineMode="Classic" />
Replacement code:
<add name="Classic .NET AppPool" managedPipelineMode="Integrated" />
f Task 6: Modify the applicationHost.config file to disable all other authentication types
except for anonymous
Disable all other authentication types except for anonymous in the applicationHost.config file:
Section: <authentication>
clientCertificateMappingAuthentication
digestAuthentication
iisClientCertificateMappingAuthentication
windowsAuthentication
f Task 7: Modify the applicationHost.config file to protect all content by removing the
managedHandler precondition from the <system.webServer> section
Protect all content by removing the managedHandler precondition in the applicationHost.config file:
Section: <system.webServer>
Original code:
<add name="FormsAuthentication"
type="System.Web.Security.FormsAuthenticationModule" preCondition="managedHandler"
/>
Replacement code:
Lab Instructions: Securing the IIS 7.0 Web Server and Web Sites
<add name="FormsAuthentication"
type="System.Web.Security.FormsAuthenticationModule" />
Original code:
<add name="DefaultAuthentication"
type="System.Web.Security.DefaultAuthenticationModule"
preCondition="managedHandler" />
Replacement code:
<add name="DefaultAuthentication"
type="System.Web.Security.DefaultAuthenticationModule" />
f Task 8: Reconfigure the authorization and authentication so that the protected content
uses forms authentication
1.
Reconfigure authorization so that the protected content uses forms authentication in the Web.Config
file:
Section: <authorization>
Add the line <allow [email protected] />, above the line <!--<deny
users="?" />-->
Original code:
<<!--<deny users="?" />-->
Replacement code:
<deny users="?" />
2.
Using the IIS Manager, reconfigure authentication so that the protected content uses forms
authentication.
Launch Authentication
2.
3.
Use Internet Explorer to log into the default Web site and retrieve the confidential memo.
Email: [email protected]
Password: Pa$$w0rd
Lab Instructions: Securing the IIS 7.0 Web Server and Web Sites
Results: After reconfigure the Web sites authorization and authentication, so that all content uses
forms authentication and thereby protecting the confidential memo, the only way to obtain the memo
is by having the correct credentials.
Lab Instructions: Securing the IIS 7.0 Web Server and Web Sites
Results: After examining the configuration of the Web servers logging settings, the current log file was
examined and proven to successfully track the Web servers activity.
Module 6
Lab Instructions: Configuring Delegation and Remote
Administration
Contents:
Exercise 1: Configuring Remote Administration
LLab: Con
nfigurin
ng Delegation and Rem
mote
A
Adminis
stration
Exercise 1: Configurin
ng Remote
e Administration
Sccenario
Yo
ou need to be able to config
gure the server remotely. Yo
ou must enable
e remote admiinistration and
d then
te
est it by accesssing the admin
nistration featu
ures from a rem
mote compute
er.
A new site has been
b
set up an
nd you have be
een asked to delegate
d
the administration of the site to the
t
bu
usiness owner. You will need
d to give the business
b
ownerr permission to
o administer th
heir site only, but
b not
th
he other sites hosted
h
on the server.
Yo
ou have been assigned a serrvice request to allow all site
e owners to administer the error messages for
th
heir site. You must
m
unlock the error page feature
f
so that it can be dele
egated.
In
n this exercise you
y will practice configuring
g a Web serverr for remote ad
dministration.
Th
his exercises main
m
tasks are:
1..
2..
Configure NYC-WEB-B
N
fo
or remote adm
ministration.
Test NYC-W
WEB-B remote administration.
On NYC-DC
C1, add the IISS Managemen
nt Console.
2.
On the NYC-WEB-B Default Web Site, set index.htm at the first default document.
Results: After completing this exercise, you should have configured the IIS Management Service to
accept remote connections and you should have tested a remote connection from NYC-DC1.
2.
Location: E:\Mod06\Labfiles
Site: WoodgroveHRSite
Rights: Co-owner
Using IIS Manager, grant the Windows user Herber Dorner access to the HR site.
f Task 2: Share the Woodgrove sales Web site for Betsy Stadick
On NYC-WEB-B, share the Woodgrove sales Web site for Betsy Stadick.
Location: E:\Mod06\Labfiles
Site: WoodgroveSalesSite
Rights: Co-owner
<iisClientCertificateMappingAuthentication
f Task 4: Test delegated administration for the Human Resources and Sales sites
1.
2.
3.
Password: Pa$$w0rd
Site name: HR
Password: Pa$$w0rd
6.
7.
Results: After completing this exercise, you should have successfully delegated administration
for the Human Resources Web site to Herber Dorner and delegated administration for the
Sales Web site to Betsy Stadick.
Configure feature delegation for the Human Resources and Sales sites.
Test feature delegation for the Human Resources site.
f Task 1: Configure feature delegation for the Human Resources and Sales sites
Results: After completing this exercise, you should have successfully configured the Human Resources
and Sales sites so that the site owners can customize error pages for each site.
Lab Instructions: Using Command-line and Scripting for IIS 7.0 Administration
Module 7
Lab Instructions: Using Command-line and Scripting for IIS
7.0 Administration
Contents:
Exercise 1: Manage IIS Web Sites with PowerShell
Lab Instructions: Using Command-line and Scripting for IIS 7.0 Addministration
Start the 64
427A-NYC-WE
EB-B virtual ma
achine and log
g on as Woodg
grovebank\Administrator.
Use PowerS
Shell to identiffy all services.
Use PowerS
Shell to identiffy running servvices that startt with a "w".
Stop the w3
3svc service ussing PowerShe
ell.
Start the w3
3svc service ussing PowerShe
ell.
List the Pow
wershell.exe prrocess using th
he get-wmiobjject cmdlet.
Lab Instructions: Using Command-line and Scripting for IIS 7.0 Administration
Use the Get-WmiObject -query "Select * From Win32_Process Where Name = 'powershell.exe'"
cmdlet.
Results: After this exercise, you should have successfully identified, stopped and started services using
PowerShell.
Lab Instructions: Using Command-line and Scripting for IIS 7.0 Administration
Load Microsoft.Web.Administration.dll.
Get Web site information with MWA.
Create a function using MWA to find Web sites.
Use the findsite function to list the default Web site, the default Web site ID, and then stop and start
the default Web site.
Open PowerShell.
(New-Object Microsoft.Web.Administration.ServerManager).Sites
f Task 4: Use the findsite function to list the default Web site, the default Web site ID, and
then stop and start the default Web site
Results: After this exercise, you should have successfully used Microsoft.Web.Administration to gather
Web site information and created a function to start and stop the default Web site.
Lab Instructions: Using Command-line and Scripting for IIS 7.0 Administration
To open profile script: if (test-path $profile) {echo Path exists.} else {new-item path $profile
itemtype file force}; notepad $profile
Profile script:
Lab Instructions: Using Command-line and Scripting for IIS 7.0 Administration
2.
3.
Lab Instructions: Using Command-line and Scripting for IIS 7.0 Administration
Use this command: appcmd list apppool /xml | appcmd recyle apppool /in
Use this command: appcmd list app /site.name:"NewSite" /xml | appcmd set app /in
/applicationPool:NewAppPool
f Task 5: Store configuration information to file, and then restore the configuration
information
To store configuration information: appcmd list config Default Web Site/ /section:caching /xml
/config > config.xml
To restore configuration information: appcmd set config Default Web site/ /in < config.xml
f Task 6: Use WMI to list the default Web site on the Web server
1.
Using Notepad create a file named GetSite.vbs with the following code:
Set oIIS = GetObject("winmgmts:root\WebAdministration")
Set oSite = oIIS.Get("Site.Name='Default Web Site'")
WScript.Echo "Retrieved an instance of Site "
WScript.Echo "
Name: " & oSite.Name
WScript.Echo "
ID:
" & oSite.ID
2.
3.
4.
Lab Instructions: Using Command-line and Scripting for IIS 7.0 Administration
Results: After this exercise, you should have successfully used AppCmd to recycle application pools,
move application and store configuration information to a file. You should have also successfully
identified the default Web site using WMI.
Module 8
Lab Instructions: Tuning IIS 7.0 for Improved Performance
Contents:
Exercise 1: Deploying Applications
Lab: Tun
ning IIS 7.0 for Improv
ved Perrforman
nce
Exercise 1: Deploying
g Applications
Sccenario
Yo
ou receive a re
equest to deploy a second co
opy of an insta
alled applicatio
on, and then deploy
d
update
es to the
ne
ew installation
n so that the En
nterprise Desig
gn QA team ca
an test the pro
oposed update
es.
Ex
xercise Ove
erview
In
n this exercise, students will learn how to deploy an appllication, as welll as applicatio
on updates, witth
Xccopy.
Th
his exercises main
m
tasks are:
1..
2..
3..
4..
5..
6..
7..
Start the 64
427A-NYC-DC1 virtual mach
hine.
Start the 64
427A-NYC-WE
EB-A virtual ma
achine and log
g on as Woodg
grovebank\Administrator.
Add ASP.NET and Dynam
mic Content Co
ompression fea
atures to the IIIS Role.
Create the SalesSupport application
a
an
nd copy the ASSP.NET application files.
Deploy a se
econd copy of the SalesSupp
port applicatio
on named SalesSupport2 usin
ng Xcopy.
Deploy the application updates to Sale
esSupport2 using Xcopy.
Create and assign an app
plication pool for SalesSuppo
ort2 and test fu
unctionality.
Start 6427A
A-NYC-DC1.
Start 6427A
A-NYC-WEB-A
A, and log on as LocalAdmiin with the password of Pa$
$$w0rd.
f Task 3: Add ASP.NET and Dynamic Content Compression features to the IIS Role
On NYC-WEB-A, use Server Manager to add the ASP.NET and Dynamic Content Compression role
services.
f Task 4: Create the SalesSupport application and copy the ASP.NET application files
1.
2.
On NYC-WEB-A, use IIS Manager to add the SalesSupport application with a physical path of
c:\inetpub\wwwroot\SalesSupport.
Copy the application files from E:\Mod08\Labfiles\SalesSupport to
c:\inetpub\wwwroot\SalesSupport.
At the command prompt, use Xcopy to copy the updated files from
E:\mod08\labfiles\salessupport2 to c:\inetpub\wwwroot\salessupport2.
In IIS Manager, add the application SalesSupport2 with the physical path
c:\inetpub\wwwroot\salesupport2.
f Task 7: Create and assign an application pool for SalesSupport2 and test functionality
1.
2.
In IIS Manager, add an application pool named SalesSupport2 and assign it to the SalesSupport2
application.
In Internet Explorer, browse to http://localhost/salesupport, and then browse to
http://localhost/salessupport2 and compare results.
Results: After this exercise, you should have successfully verified that the ASP.NET role service is
installed, deployed that SalesSupport2 application, and verified functionality.
Exercise Overview
In this exercise, students will learn how to configure IIS Performance Options.
This exercises main tasks are:
1.
2.
3.
4.
2.
3.
4.
In IIS Manager, add a cache rule to the SalesSupport application for the extension .aspx.
Click At time intervals, and then delete the existing text and type 00:00:10.
9.
2.
3.
4.
Open Internet Explorer and browse to http://localhost. Open two more tabs and browse to
http://localhost so that you have three tabs open to http://localhost. Right-click a tab and choose
Refresh All. Notice that all of the tabs refresh successfully. Close Internet Explorer.
In IIS Manager, set a Web Site Limit for the default web site so that the number of connections is
limited to 1.
In Internet Explorer, open three tabs to http://localhost. Right-click a tab and choose Refresh All.
Notice that one of the tabs now reports an error.
Close Internet Explorer before continuing.
Results: After this exercise, you should have configured performance options and verified functionality.
Exercise Overview
In this exercise, students will learn how to manage application pools to improve performance.
This exercises main tasks are:
1.
2.
3.
In IIS Manager, modify the SalesSupport2 application to use the default application pool, and then
remove the SalesSupport2 application pool.
Open Internet Explorer and browse to http://localhost/salessupport. Open a second tab and
browse to http://localhost/salessupport2.
In Reliability and Performance Monitor, examine the memory and number of instances of
w3wp.exe.
Results: After this exercise, you should have recycled and consolidated application pools, and verified
resource usage with Reliability and Performance Monitor.
4.
es?
Module 9
Lab Instructions: Ensuring Web Site Availability with Web
Farms
Contents:
Exercise 1: Backing Up an IIS Web Site
Exercise 1: Backing Up
U an IIS Web
W Site
Sccenario
Th
he Enterprise Design
D
Team has
h asked you to explore options for increasing Web site
e availability. Before
B
yo
ou begin, you will back up an existing site and verify tha
at it can be resstored properlyy.
Th
he main tasks for this exercisse are as follow
ws:
1..
2..
3..
4..
Start the 64
427A-NYC-DC1 virtual mach
hine.
Start the 64
427A-NYC-WE
EB-D virtual ma
achine and log
g on as Woodg
grovebank\Ad
dministrator.
Start the 64
427A-NYC-WE
EB2 virtual macchine and log on as Woodgrrovebank\Adm
ministrator.
Backup the
e Web site, We
eb application, and config files to the E: drive.
Log on to NYC-WEB-D.
N
User: Woodgroveba
W
ank\Administtrator
Passwo
ord: Pa$$w0rd
d
Log on to NYC-WEB2.
N
User: Woodgroveba
W
ank\Administtrator
Passwo
ord: Pa$$w0rd
d
f Task 4: Backup the Web site, Web application, and config files to the E: drive
1.
2.
Source: C:\inetpub\wwwroot
Results: After this exercise, you should have successfully backed up a Web site. Provide the results of
the exercise so students will know when and if they have completed the lab exercise successfully.
Restore the Web site, Web application, and config files from the shared drive.
f Task 1: Restore the Web site, Web application, and config files from the shared drive
1.
2.
3.
Destination C:\inetpub\wwwroot
Results: After this exercise, you should have successfully restored a Web site to a second server. Provide
the results of the exercise so students will know when and if they have completed the lab exercise
successfully.
2.
3.
Server: NYC-WEB-D
Password: Pa$$w0rd
f Task 2: Add the second Web server to use the Shared Configuration.
1.
2.
Server: NYC-WEB2
Password: Pa$$w0rd
2.
Server: NYC-WEB-D
Name: test.html
Results: After this exercise, you should have successfully configured a two-server network with an
underlying foundation of shared configurations.
Server: NYC-WEB-D
Host: NYC-WEB-D
f Task 2: Add the second host to the Network Load Balancing cluster
Using Network Load Balancing Manager, add the second host to the cluster.
Host: NYC-WEB2
f Task 3: Add the second server to the Network Load Balancing cluster
Using Network Load Balancing Manager, add the second server to the cluster.
Server: NYC-WEB2
2.
3.
Server: NYC-WEB2
Server: NYC-WEB-D
Server: NYC-WEB-D
Results: After this exercise, you should have successfully restored a Web site to a second server. Provide
the results of the exercise so students will know when and if they have completed the lab exercise
successfully.
Module 10
Lab Instructions: Troubleshooting IIS 7.0 Web Servers
Contents:
Exercise 1: Troubleshooting Authentication
Lab: Tro
oublesho
ooting IIS 7.0 Web
W Se
ervers
Exercise 1: Troublesh
hooting Au
uthenticatiion
Sccenario
Yo
ou receive a se
ervice request asking to reso
olve a user issu
ue. The passwo
ord-protected intranet site iss
acccessed by dom
main users witthin the compa
any, but is nott allowing acce
ess to anyone. Using logs and
de
etailed error messages,
m
you must resolve the
t problem.
Ex
xercise Ove
erview
In
n this exercise, you will troub
bleshoot an authentication isssue using IIS logs and detailed error messsages.
Th
his exercises main
m
tasks are:
1..
2..
3..
4..
5..
6..
7..
Start the 64
427A-NYC-DC1 virtual mach
hine and log on as Woodgro
ovebank\Administrator.
Start the 64
427A-NYC-WE
EB-E virtual ma
achine and log
g on as Woodg
grovebank\Administrator.
Browse to http://localhos
h
st/salessupportt.
Examine the log file.
Enable Deta
ailed Error Me
essages.
Reproduce the issue and examine the detailed
d
error.
Resolve the
e issue and test functionalityy.
Start 6427A
A-NYC-DC1 and log on as Woodgroveba
W
ank\Administtrator, passwo
ord Pa$$w0rd
d.
Start 6427A
A-NYC-WEB-E
E and log on as
a Woodgrove
ebank\Admin
nistrator, passsword Pa$$w0
0rd.
In C:\inetpub\logs\LogFiles\W3SVC1, open the most recent log file and look for the error. Note the
substatus.
In IIS Manager, enable Detailed errors for local requests and custom error pages for remote
requests.
Based on the detailed error, modify the configuration in IIS Manager to correct the issue.
In Internet Explorer, browse to http://localhost/salessupport to verify that the issue has been
corrected.
Results: After this exercise, you should have successfully examined the IIS log files, enabled detailed
error messages, and resolved the authentication issue.
Exercise Overview
In this exercise, you will troubleshoot authorization using Failed Request Tracing.
This exercises main tasks are:
1.
2.
3.
4.
Browse to http://localhost/salessupport2.
Enable Failed Request Tracing and add a rule to trace successful requests.
Reproduce the issue and examine the Failed Request Tracing log.
Resolve the issue and verify functionality.
f Task 2: Enable Failed Request Tracing and add a rule to trace successful requests
In IIS Manager, add a Failed Request Tracing rule to trace successful requests.
f Task 3: Reproduce the issue and examine the Failed Request Tracing log
1. In Internet Explorer, browse to http://localhost/salessupport2.
2. Examine the latest failed request tracing log in c:\inetpub\logs
\FailedReqLogFiles\W3SVC1. Examine the authorization information in the log.
Based on the log, modify the configuration in IIS Manager to correct the issue.
Results: After this exercise, you should have successfully enabled failed request tracing, and resolved
the authorization issue.
Exercise Overview
In this exercise, you will troubleshoot communication using tools.
This exercises main tasks are:
1.
2.
3.
4.
At the command prompt, type ping NYC-WEB-E, and then press ENTER.
On NYC-WEB-E, in IIS Manager, correct the configuration based on the information from the
detailed error.
In Internet Explorer, browse to http://localhost/netapp/content to verify that the error has been
corrected.
Results: After this exercise, you should used ping to verify communication, enabled detailed error
messages, and resolved the error.
Exercise Overview
In this exercise, you will troubleshoot configuration using detailed error messages.
This exercises main tasks are:
1.
2.
3.
f Task 1: Reproduce the issue and examine the detailed error message
1.
2.
Correct the error and save the file based on the information from the detailed error.
Lab Answer Key: Configuring an Internet Information Services 7.0 Web Server
Module 1
Lab Answer Key: Configuring an Internet Information
Services 7.0 Web Server
Contents:
Exercise 1: Installing IIS Using Role Manager
Lab Answer Key: Configuring an Internet Information Services 7.0 Web Server
Password: Pa$$w0rd
Exercise Overview
In this exercise, you will learn how to install IIS 7.0 using Role Manager.
This exercises main tasks are:
1.
2.
3.
Note: If you have already logged on to a virtual machine, skip the logon task for that particular
virtual machine.
2.
Lab Answer Key: Configuring an Internet Information Services 7.0 Web Server
9.
10.
11.
12.
13.
14.
15.
Results: After this exercise you should have successfully verified that the Web Server (IIS) role is
installed and loaded the IIS Welcome page in Internet Explorer.
Lab Answer Key: Configuring an Internet Information Services 7.0 Web Server
Exercise Overview
In this exercise, you will learn how to install IIS using unattended setup.
This exercises main tasks are:
1.
2.
3.
4.
2.
f Task 3: Create the Unattend.XML file by copying the default XML file provided and
removing unnecessary features
1.
2.
3.
4.
5.
6.
<selection
<selection
<selection
<selection
<selection
<selection
<selection
<selection
7.
name="IIS-HttpRedirect" state="true"/>
name="IIS-ASP" state="true"/>
name="IIS-CGI" state="true"/>
name="IIS-IIS6ManagementCompatibility" state="true"/>
name="IIS-Metabase" state="true"/>
name="IIS-WMICompatibility" state="true"/>
name="IIS-LegacyScripts" state="true"/>
name="IIS-LegacySnapIn" state="true"/>
Lab Answer Key: Configuring an Internet Information Services 7.0 Web Server
To do this,
Edit Version=6.0.6001.16659 to Version="6.0.6001.18000"
8. On the File menu, click Save As.
9. The Save As dialog box appears. Type c:\unattend.xml, and then click Save.
10. Close Notepad.
f Task 4: Install IIS using Pkgmgr with the Unattend.XML file and verify once completed
1.
2.
3.
4.
Lab Answer Key: Configuring an Internet Information Services 7.0 Web Server
Exercise Overview
In this exercise, you will learn how to install IIS via the command line in a Server Core environment.
This exercises main tasks are:
1.
2.
3.
On NYC-SVR2, in the command prompt window, type netsh firewall set opmode disable and press
Enter.
Note: Disabling the firewall should not be done in a real-world environment as it is bad security practice.
2.
3.
4.
5.
Type the following and then press Enter. Note that the feature names are case-sensitive:
Start /w pkgmgr /iu:IIS-WebServerRole;IIS-WebServer;IIS-CommonHttpFeatures;IISStaticContent;IIS-DefaultDocument;IIS-HttpErrors;IIS-HttpRedirect;WASWindowsActivationService;WAS-ProcessModel
When the process completes, type echo %errorlevel%, and then press Enter. Note that it may take
up to two minutes to complete.
Notice that the return code is 0 indicating a successful installation.
On NYC-SVR1, in Internet Explorer, browse to http://nyc-svr2.
Notice that the IIS Welcome page loads, indicating that the Web server role on NYC-SVR2 is installed
and functioning.
Results: After this exercise you should have successfully installed IIS on Microsoft Server 2008 Server
Core from the command line and verified by loading the IIS Welcome page from another machine
running Internet Explorer.
Lab Answer Key: Configuring an Internet Information Services 7.0 Web Server
Exercise Overview
In this exercise, you will configure common IIS features and validate functionality.
This exercises main tasks are:
1.
2.
3.
Configure NYC-SVR1 for ASP debugging, detailed error messages, HTTP compression and SMTP Service.
Configure NYC-SVR3 to trace server errors, enable directory browsing, enable windows authentication and
impersonation, configure UDDI, and enable dynamic output compression.
Configure NYC-SVR2 to have no default documents, and redirect requests to NYC-SVR1.
f Task 1: Configure NYC-SVR1 for ASP debugging, detailed error messages, and HTTP
compression
1.
On NYC-SVR1, click Start | Administrative Tools | Internet Information Services (IIS) Manager.
2.
In the Connections pane, expand NYC-SVR1 | Sites, and then click Default Web Site.
3.
4.
5.
6.
7.
8.
9.
Lab Answer Key: Configuring an Internet Information Services 7.0 Web Server
f Task 2: Configure NYC-SVR3 to trace server errors, enable directory browsing, enable
windows authentication and impersonation, configure UDDI, and enable dynamic
output compression and SMTP
1.
On NYC-SVR3, click Start | Administrative Tools | Internet Information Services (IIS) Manager.
2.
In the Connections pane, expand NYC-SVR3 | Sites, and then click Default Web Site.
3.
4.
The Edit Web Site Failed Request Tracing Settings dialog box appears. Select Enable, and then
click OK.
5.
In the details pane, in the IIS section, double-click Failed Request Tracing Rules.
6.
7.
The Add Failed Request Tracing Rule dialog box appears. Click Next.
8.
9.
Select Event severity, and then in the Event severity list, click Critical Error.
Lab Answer Key: Configuring an Internet Information Services 7.0 Web Server
5.
6.
7.
8.
9.
Close each of the running virtual machines. Do not save changes so they are reset to default for the
next lab.
Results: After this exercise you should have successfully configured and verified the configuration of
the three web servers.
Note: After you have completed the lab exercises closing the VMs and selecting undo disk is not required
for hosted labs. Click the Quit button to exit.
Lab Answer Key: Configuring IIS 7.0 Web Sites and Application Pools
Module 2
Lab Answer Key: Configuring IIS 7.0 Web Sites and
Application Pools
Contents:
Exercise 1: Configuring Authentication Types
Lab Answer Key: Configuring IIS 7.0 Web Sites and Application Pools
Password: Pa$$w0rd
Exercise Overview
In this exercise, you will learn how to create virtual directories and configure anonymous authentication.
This exercises main tasks are:
Start the 6427A-NYC-DC1 virtual machine.
1.
2.
3.
Add Basic, Windows Integrated and Digest Security features to the IIS Role.
4.
5.
Note: If you have already logged on to a virtual machine, skip the logon task for that particular virtual machine.
f Task 3: Add Basic, Windows Integrated and Digest Security features to the IIS Role
1.
2.
3.
4.
On NYC-WEB-A, in Server Manager, in the console pane, expand Roles and then click Web Server
(IIS).
Right-click Web Server (IIS) and then click Add Role Services.
The Add Role Services dialog box appears. In the Role services box, under Security, select Basic
Authentication, Windows Authentication, and Digest Authentication.
Click Next and then click Install.
Lab Answer Key: Configuring IIS 7.0 Web Sites and Application Pools
5.
6.
In the details pane, in the Role Services section, notice that Basic Authentication, Windows
Authentication, and Digest Authentication are listed as Installed.
2.
In the Connections pane, expand NYC-WEB-A | Sites and then click Default Web Site.
3.
4.
5.
The Add Virtual Directory dialog box appears. In the Alias field, type Public.
6.
Next to the Physical path field, click the Browse (...) button.
7.
The Browse For Folder dialog box appears. Browse to C:\inetpub, and then click Make New Folder.
8.
9.
Click OK.
In Internet Information Services (IIS) Manager, in the Connections pane, expand Default Web
Site and then click Public.
2.
3.
4.
5.
The Edit Anonymous Authentication Credentials dialog appears. Notice that Specific user is
selected and set to IUSR.
6.
Click Cancel.
7.
In Server Manager, in the console pane, expand Configuration | Local Users and Groups and then
click Users.
8.
9.
The Guest Properties dialog box appears. Clear Account is disabled, and then click OK.
Note: It is a poor security practice and should not be done in a real-world scenario.
10. Click Start | Administrative Tools | Local Security Policy.
11. The Local Security Policy window opens. In the console pane, expand Local Policies and then click
User Rights Assignment.
12. In the details pane, right-click Allow log on locally, and then click Properties.
13. The Allow log on locally Properties dialog appears. Click Add User or Group.
14. The Select Users, Computers, or Groups dialog box appears. Click Locations.
15. The Locations dialog box appears. Click NYC-WEB-A, and then click OK.
Lab Answer Key: Configuring IIS 7.0 Web Sites and Application Pools
16. In the Enter the object names to select field, type Guest, and then click OK twice.
17. Close Local Security Policy.
18. Click Start | Switch User.
19. Logon as NYC-WEB-A\Guest with no password.
20. Click Start | All Programs | Internet Explorer.
21. The Windows Internet Explorer window opens. Browse to http://localhost. Note that weve set
the default site to the Public virtual directory so theres no need to use localhost/public.
Notice that the IIS7 Welcome page loads.
22. Click Start | Switch User.
23. Log on as Woodgrovebank\Administrator with the password of Pa$$w0rd.
Results: After this exercise, you should have created virtual directories on the Web server and provided
both public and restricted access levels to those directories.
Lab Answer Key: Configuring IIS 7.0 Web Sites and Application Pools
Exercise Overview
In this exercise, you will learn how to create web sites and applications.
This exercises main tasks are:
1.
2.
3.
4.
On NYC-WEB-A, in Internet Information Services (IIS) Manager, in the Connections pane, click
Sites.
In the Actions pane, click Add Web Site.
The Add Web Site dialog box appears. In the Site name field, type Woodgrove.
In Physical path, click the Browse (...) button.
The Browse For Folder dialog box appears. Browse to C:\inetpub, and then click Make New Folder.
Type woodgrove, and then click OK.
In the Port field, type 88, and then click OK.
2.
3.
f Task 3: Add the .NET 3.0 Feature and ASP.NET to the server
1.
2.
3.
4.
5.
6.
7.
8.
9.
Internet Information Services (IIS) Manager, in the Connections pane, expand Sites and then click
Woodgrove.
2.
3.
The woodgrove Properties dialog box appears. Click the Security tab.
Lab Answer Key: Configuring IIS 7.0 Web Sites and Application Pools
4.
Click Edit.
5.
6.
The Select, Users, Computers, or Groups dialog box appears. In the Enter the object names to
select field, type ITAdmins_WoodgroveGG, and then click Check Names.
7.
Click OK.
8.
Results: After this exercise, you should have successfully installed .NET 3.0 Framework, ASP.NET, and
created the Woodgrove site and copied its content.
Lab Answer Key: Configuring IIS 7.0 Web Sites and Application Pools
Exercise Overview
In this exercise, you will learn how to create an application pool.
This exercises main tasks are:
On NYC-WEB-A, in Internet Information Services (IIS) Manager, expand NYC-WEB-A and then
click Application Pools.
2.
3.
The Add Application Pool dialog box appears. In the Name field, type TempPool.
4.
Click OK.
5.
In the details pane, notice that TempPool appears in the list of application pools.
Results: After this exercise, you should have successfully added an application pool named TempPool.
Lab Answer Key: Configuring IIS 7.0 Web Sites and Application Pools
Exercise Overview
In this exercise, you will configure the application pools and validate functionality.
This exercises main tasks are:
1.
2.
3.
4.
5.
6.
7.
On NYC-WEB-A, in Internet Information Services (IIS) Manager, expand Sites and then click
Woodgrove.
2.
3.
4.
The Select Application Pool dialog box appears. In the Application pool list, click TempPool, and
then click OK twice.
5.
6.
7.
8.
9.
f Task 2: Configure WoodgrovePool and the Woodgrove site for Windows Integrated
authentication to allow all authenticated users
1.
2.
3.
4.
Lab Answer Key: Configuring IIS 7.0 Web Sites and Application Pools
5.
6.
7.
8.
Log on to NYC-SVR1 as LocalAdmin with the password of Pa$$w0rd. Note that this machine is not
joined to the domain.
9.
In Internet Information Services (IIS) Manager, in the Connections pane, click Application Pools.
2.
3.
4.
The Advanced Settings dialog box appears. Under the Process Model section, click Identity.
5.
6.
The Application Pool Identity dialog box appears. In the Built-in account list, click LocalSystem.
7.
Click OK twice.
2.
3.
4.
In the details pane, notice that the status of WoodgrovePool changes to Stopped.
5.
6.
In the details pane, notice that the status of WoodgrovePool changes to Started.
7.
10
Lab Answer Key: Configuring IIS 7.0 Web Sites and Application Pools
Module 3
Lab Answer Key: Configuring IIS 7.0 Application Settings
Contents:
Exercise 1: Configuring ASP.NET
13
Password: Pa$$w0rd
Exercise Overview
In this exercise, you will learn how to add the ASP.NET role service and configure ASP.NET. You will choose and
configure the appropriate authentication model, and set up custom error pages to handle HTTP errors.
This exercises main tasks are:
1.
2.
3.
4.
Create the SalesSupport application and copy the ASP.NET application files.
5.
6.
Configure custom error pages for 401.aspx for 401 errors, and Other_Errors.aspx for all other errors.
2.
f Task 3: Add ASP.NET and Basic Security features to the IIS Role
1.
On NYC-WEB-A, in Server Manager, in the console pane, expand Roles and then click Web Server
(IIS).
2.
Right-click Web Server (IIS), and then click Add Role Services.
3.
The Add Role Services dialog box appears. In the Role services box, under Application
Development, select ASP.NET.
4.
The Add Role Services box appears. Click Add Required Role Services.
5.
6.
7.
8.
In the details pane, in the Role Services section, notice that ASP.NET and Basic Authentication are
listed as Installed.
f Task 4: Create the SalesSupport application and copy the ASP.NET application files
1.
2.
In the Connections pane, expand NYC-WEB-A | Sites and then click Default Web Site.
3.
4.
5.
The Add Application dialog box appears. In the Alias field, type SalesSupport.
6.
Next to the Physical path field, click the Browse (...) button.
7.
The Browse For Folder dialog box appears. Browse to C:\inetpub\wwwroot, and then click Make
New Folder.
8.
9.
Click OK.
In Internet Information Services (IIS) Manager, in the Connections pane, expand Default Web
Site and then click SalesSupport.
2.
3.
4.
5.
6.
7.
Click Edit.
8.
The Edit Basic Authentication Settings dialog appears. In the Default domain and Realm fields,
type woodgrovebank.
9.
Click OK.
12. The Connect to localhost dialog box appears. Notice that there is a warning about basic
authentication and insecure credentials.
13. In the User name field, type yvonne. Note that Yvonne is a marketing account manager with a
domain account in the Woodgrovebank domain.
14. In the Password field, type Pa$$w0rd and then click OK.
Notice that the Sales Support Resources page loads successfully.
15. Close Internet Explorer. Note that you must close the browser to reset the session so you can try
logging in as a different user.
16. Click Start | All Programs | Internet Explorer.
17. The Windows Internet Explorer window opens. Browse to http://localhost/salessupport.
18. The Connect to localhost dialog box appears. In the User name field, type bob. Note that Bob does
not have a domain account in the Woodgrovebank domain.
19. Leave the Password field blank and then click OK.
20. Click OK two more times.
Notice that you get an HTTP 401.1 Unauthorized error. Note that detailed error messages show up
locally by default.
f Task 6: Configure custom error pages for 401.aspx for 401 errors, and Other_Errors.aspx
for all other errors
1.
2.
3.
4.
In Internet Information Services (IIS) Manager, in the Connections pane, click SalesSupport.
5.
6.
7.
The Edit Error Pages Settings box appears. Click Custom error pages.
8.
Click OK.
9.
In the details pane, under the Status Code column, click 401.
18. Click OK twice. Note that in a real world situation, you would repeat these steps for each error that
you wanted to assign to a custom error message.
19. Click Start | All Programs | Internet Explorer.
20. The Windows Internet Explorer window opens. Browse to http://localhost/salessupport.
21. The Connect to localhost dialog box appears. In the User name field, type bob.
22. Leave the Password field blank and then click OK three times.
Notice that there is now a custom error message directing you to contact your district sales manager.
23. Close Internet Explorer.
24. Click Start | All Programs | Internet Explorer.
25. The Windows Internet Explorer window opens. Browse to
http://localhost/salessupport/brokenlink.
26. The Connect to localhost dialog box appears. In the User name field, type yvonne.
27. In the Password field, type Pa$$w0rd and then click OK.
If you are prompted, add the site to the allowed list.
Notice that you get a custom error that is slightly different. Since the path brokenlink doesnt exist,
this is a custom 404 error.
Results: After this exercise, you should have successfully verified that the ASP.NET role service is
installed, configured Basic authentication, and verified custom error pages in Internet Explorer.
Exercise Overview
In this exercise, you will learn how to configure ASP.NET application development settings.
This exercises main tasks are:
1.
2.
3.
4.
On NYC-WEB-A, in Internet Information Services (IIS) Manager, in the Connections pane, expand
Sites | Default Web Site and then click SalesSupport.
2.
3.
4.
The Add Connection String dialog box appears. In the Name field, type LocalResources.
5.
Click Custom.
6.
In the Custom field delete the existing text and then type data
source=.\SQLEXPRESS;AttachDbFileName=e:\mod03\labfiles\resources.mdf;IntegratedSecurit
y=True
7.
Click OK.
f Task 2: Configure ASP.NET Session State settings to rename the cookie to SalesSupport
1.
2.
3.
In the Cookie Settings section, in the Name field, delete the existing text and then type
SalesSupport_SessionID.
4.
2.
3.
4.
5.
The Add Custom Control dialog box appears. In the Tag prefix field type Woodgrovebank.
6.
7.
8.
Click OK.
2.
3.
The Connect to localhost dialog box appears. In the User name field, type yvonne.
4.
5.
In Internet Information Services (IIS) Manager, in the Connections pane, click Default Web Site.
6.
7.
8.
The Add Application Setting dialog box appears. In the Name field, type DefaultLocation.
9.
Exercise Overview
In this exercise, you will learn how to create an application pool.
This exercises main tasks are:
1.
2.
3.
Use XCopy to deploy the files from the SalesSupport directory to the SalesSupport_DE and SalesSupport_Test
directories.
4.
5.
6.
7.
8.
On NYC-WEB-A, in Internet Information Services (IIS) Manager, in the Connections pane, click
Application Pools.
2.
3.
The Add Application Pool dialog box appears. In the Name field, type SalesSupport.
4.
Click OK.
5.
6.
The Add Application Pool dialog box appears. In the Name field, type SalesSupport_De.
7.
Click OK.
8.
9.
The Add Application Pool dialog box appears. In the Name field, type SalesSupport_Test.
11. In the details pane, notice that SalesSupport, SalesSupport_DE, and SalesSupport_Test appear in
the list of application pools.
2.
3.
4.
The Add Application dialog box appears. In the Alias field, type SalesSupport_De.
5.
6.
The Browse For Folder dialog box appears. Browse to C:\inetpub\wwwroot, and then click Make
New Folder.
7.
8.
9.
The Add Application dialog box appears. In the Alias field, type SalesSupport_Test.
10. Next to the Physical path field, click the Browse () button.
11. The Browse For Folder dialog box appears. Browse to C:\inetpub\wwwroot, and then click Make
New Folder.
12. Type SalesSupport_Test and then click OK twice.
13. In the details pane, notice that SalesSupport, SalesSupport_DE, and SalesSupport_Test appear in
the list of applications.
f Task 3: Use XCopy to deploy the files from the SalesSupport directory to the
SalesSupport_DE and SalesSupport_Test directories
1.
2.
3.
4.
Type dir SalesSupport_De and then press Enter to confirm that the files were copied.
5.
6.
Type dir SalesSupport_Test and then press Enter to confirm that the files were copied.
In Internet Information Services (IIS) Manager, in the Connections pane, click Default Web Site.
2.
3.
4.
5.
6.
The Select Application Pool dialog box appears. In the Application pool list, click SalesSupport,
and then click OK twice.
7.
8.
9.
10
10. The Select Application Pool dialog box appears. In the Application pool list, click
SalesSupport_De, and then click OK twice.
11. In the details pane, click /SalesSupport_Test.
12. In the Actions pane, click Basic Settings.
13. The Edit Application dialog box appears. Click Select.
14. The Select Application Pool dialog box appears. In the Application pool list, click
SalesSupport_Test, and then click OK twice.
15. In the Connections pane, click SalesSupport_De.
16. In the details pane, double-click Authentication.
17. Click Anonymous Authentication.
18. In the Actions pane, click Disable.
19. In the details pane, click Basic Authentication.
20. In the Actions pane, click Enable.
21. Click Edit.
22. The Edit Basic Authentication Settings dialog appears. In the Default domain and Realm fields,
type woodgrovebank.
23. Click OK.
24. In the Connections pane, click SalesSupport_Test.
25. In the details pane, double-click Authentication.
26. Click Anonymous Authentication.
27. In the Actions pane, click Disable.
28. In the details pane, click Basic Authentication.
29. In the Actions pane, click Enable.
30. Click Edit.
31. The Edit Basic Authentication Settings dialog appears. In the Default domain and Realm fields,
type woodgrovebank.
2.
3.
4.
The Edit Application Pool Recycling Settings dialog box appears. Clear the Regular time intervals
check box, and then click Next.
5.
Click Finish.
6.
7.
8.
The Edit Application Pool Recycling Settings dialog box appears. Clear Regular time intervals
check box, and then click Next.
9.
11
Click Finish.
2.
3.
The Edit Application Pool Recycling Settings dialog box appears. Select Fixed number of
requests.
4.
In the Fixed number of requests field, type 1024 and then click Next.
5.
On the Recycling Events to Log page, select Number of requests, On-demand, and
Configuration changes.
6.
Click Finish.
2.
3.
4.
2.
3.
4.
5.
6.
7.
8.
The Connect to localhost dialog box appears. In the User name field, type yvonne.
9.
10. Open a second tab in Internet Explorer and then browse to http://localhost/salessupport_test.
11. Open a third tab and then browse to http://localhost/salessupport_de.
12. Right-click the notification area and then click Task Manager.
13. The Task Manager window opens. Click the Processes tab.
14. Under the Image Name column, notice that there are at least three instances of w3wp.exe running,
indicating at least three separate application pools.
15. Close Task Manager.
16. In Internet Explorer, browse to http://localhost/salessupport_de/test.aspx.
Notice that the date is now in dd.mm.yyyy format, the cultural default for Germany.
12
17. Close Internet Explorer. In the Internet Explorer dialog box, click Close Tabs.
Results: After this exercise, you should have successfully deployed multiple applications with separate
application pools, configured recycling and debug settings, and configured and verified .Net
globalization settings.
13
Exercise Overview
In this exercise, you will configure ASP.NET security settings.
This exercises main tasks are:
1.
2.
3.
Configure File and Folder security so that only ITAdmins_WoodgroveGG can access the Test.aspx page on
SalesSupport.
4.
5.
On NYC-WEB-A, in Internet Information Services (IIS) Manager, in the Connections pane, click
SalesSupport_De.
2.
3.
4.
Click Apply.
2.
3.
4.
f Task 3: Configure File and Folder security so that only ITAdmins_WoodgroveGG can
access the Test.aspx page in SalesSupport
1.
2.
In the details pane, click the Content View tab at the bottom of the window.
3.
Click test.aspx.
4.
5.
The test.aspx Properties dialog box appears. Click the Security tab.
6.
Click Advanced.
7.
The Advanced Security Settings for test.aspx dialog box appears. Click Edit.
8.
Clear the Include inheritable permissions from this objects parent check box.
9.
The Windows Security dialog box appears asking if you want to copy the inherited permissions. Click
Copy.
14
In Server Manager, in the console pane, expand Roles and then click Web Server (IIS).
2.
Right click Web Server (IIS), and then click Add Role Services.
3.
The Add Role Services dialog box appears. Select Health and Diagnostics to select all of the Health
and Diagnostics services.
4.
5.
6.
7.
8.
The Open dialog box appears. In the Text Documents list, click All Files.
9.
Browse to C:\inetpub\wwwroot\SalesSupport_Test.
15
11. In the first line of the file, modify the trace=false attribute to read trace=true so that the line
reads:
<@ Page Language=C# trace=true %>
12. On the fifth line of the file, type This message should appear between the double quotes, so that
the line reads:
Response.Write(This message should appear);
35. In the Password field, type Pa$$w0rd and then click OK.
16
f Task 5: Configure Request Filtering so that only ASPX requests are processed
1.
2.
Browse to http://localhost/iisstart.htm.
Notice that the IIS7 Welcome page appears.
3.
4.
5.
6.
The Open dialog box appears. In the Text Documents list, click All Files.
7.
Browse to C:\inetpub\wwwroot.
8.
9.
After the sixth line, <system.webServer>, press Enter and then add the following security section:
<security>
<requestFiltering>
<fileExtensions allowUnlisted="false" >
<add fileExtension=".aspx" allowed="true"/>
</fileExtensions>
</requestFiltering>
</security>
Question: How could you disable only certain extensions, such as .MP3 and .WMA?
Answer: Set the allowUnlisted property to true. Add the unallowed file extensions and set their
allowed properties to false.
10. On the File menu, click Save.
11. Close Notepad.
12. Click Start | All Programs | Internet Explorer.
13. The Windows Internet Explorer window opens. Browse to http://localhost/welcome.png.
14. Notice that HTTP Error 404.7 appears. Detailed error messaging states that The request filtering
module is configured to deny the file extension.
17
21. Close each of the running virtual machines. Do not save changes so they are reset to default for the
next lab.
Results: After this exercise, you should have successfully configured and verified the configuration of
the advanced security settings for ASP.NET.
Note: After you have completed the lab exercises closing the VMs and selecting undo disk is not required
for hosted labs. Click the Quit button to exit.
Module 4
Lab Answer Key: Configuring IIS 7.0 Modules
Contents:
Exercise 1: Configuring and Editing Native Modules
Password: Pa$$w0rd
Exercise Overview
In this exercise, you will learn how to remove native modules from a Web server to improve security and reduce
the server footprint.
This exercises main tasks are:
1.
2.
3.
4.
5.
6.
7.
Note: If you have already logged on to a virtual machine, skip the logon task for that particular virtual machine.
On NYC-WEB-B, if Server Manager opens, Close the Server Manager and click Start | Command
Prompt.
2.
3.
4.
5.
Question: When using the appcmd add backup command, where are the backup configuration file
placed?
Answer: In a new folder, in the C:\Windows\System32\inetserv\backup\ folder.
2.
3.
4.
5.
6.
Notice that the DefaultDocumentModule and the DirectoryListingModule entries are listed in the
Native Modules section.
Question: What do the DefaultDocumentModule and DirectoryListingModules do?
Answer: The DefaultDocumentModule offers the functionality of offering the Web browser a default
file when a specified folder or directory is specified by the URL. The DirectoryListingModule will
supply the Web client with a list of the folder contents, when a folder or directory is specified by the
URL.
f Task 4: Remove the Default Document Module and the Directory Listing Module
1.
2.
3.
4.
5.
6.
7.
In the Connections pane, expand NYC-WEB-B | Sites, and then click Default Web Site.
In the Actions pane, click Browse *:80(http).
The Windows Internet Explorer window opens. Notice that the Woodgrove Bank page opens as
expected.
Click Start | Computer and then browse to C:\windows\system32\inetsrv\config\.
In the details pane, double-click applicationHost.config.
The Notepad window opens. Find the <globalModules> section.
Delete the DefaultDocumentModule and the DirectoryListingModule entries from within the
<globalModules> tag by deleting these two lines:
<add name="DefaultDocumentModule" image=
"%windir%\System32\inetsrv\defdoc.dll" />
<add name="DirectoryListingModule" image=
"%windir%\System32\inetsrv\dirlist.dll" />
8.
9.
Scroll down to the bottom of the file and find the <system.webServer> section.
Delete the references to the DefaultDocumentModule and the DirectoryListingModule from within
the <handlers accessPolicy="Read, Script"> tag by replacing:
<add name="StaticFile" path="*" verb="*"
modules="StaticFileModule,DefaultDocumentModule,DirectoryListingModule"
resourceType="Either" requireAccess="Read" />
10. Delete the DefaultDocumentModule and the DirectoryListingModule entries from within the
<modules> tag. Delete the two lines:
<add name="DefaultDocumentModule" lockItem="true" />
<add name="DirectoryListingModule" lockItem="true" />
f Task 5: Validate that the modules have been removed and test the new server
configuration
1.
In Internet Information Services (IIS) Manager, in the Connections pane, click NYC-WEB-B.
2.
3.
In the Native Modules section, notice that the DefaultDocumentModule and the
DirectoryListingModule entries are gone.
4.
5.
In the Command Prompt, type appcmd restore backup original and then press Enter.
Notice that the AppCmd completes the restore and reports that the original configuration has been
restored.
Question: After the AppCmd completes the restore, where does it restore the configure files to?
Answer: The files are restored to the C:\Windows\System32\inetsrv\config folder.
f Task 7: Validate that the modules have been restored and test the server configuration
1.
2.
Results: After this exercise, you should have successfully removed native modules from a Web server,
and then confirmed that the server operates as expected.
Exercise Overview
In this exercise, you will learn how to add new managed modules to a Web server.
This exercises main tasks are:
1.
2.
3.
4.
5.
6.
2.
3.
4.
Browse to E:\Mod04\Labfiles\logging_module.
5.
6.
7.
Browse to C:\inetpub\logging_module\logs\.
8.
9.
The logs Properties dialog box appears. Click the Security tab.
2.
3.
4.
In Internet Information Services (IIS) Manager, in the Connections pane, click logging_module.
5.
6.
7.
8.
The Edit Managed Module dialog box appears. Notice that the type is listed as HttpLogger.
9.
Click Cancel.
In Internet Information Services (IIS) Manager, in the Connections pane, click Default Web Site.
2.
3.
4.
5.
6.
Click Login.
7.
8.
9.
In the Internet Information Services (IIS) Manager window, in the Connections pane, click NYCWEB-B.
2.
3.
4.
5.
The Edit Managed Module dialog box appears. Notice that the module is configured properly and is
set to run normally.
6.
Click Cancel.
2.
3.
4.
5.
2.
Close each of the running virtual machines. Do not save changes so they are reset to default for the
next lab.
Results: After this exercise, you should have successfully added a managed module to the Web
server.
Note: After you have completed the lab exercises closing the VMs and selecting undo disk is not required
for hosted labs. Click the Quit button to exit.
Lab Answer Key: Securing the IIS 7.0 Web Server and Web Sites
Module 5
Lab Answer Key: Securing the IIS 7.0 Web Server and Web
Sites
Contents:
Exercise 1: Configure a Secure Web Server
10
Lab Answer Key: Securing the IIS 7.0 Web Server and Web Sites
Password: Pa$$w0rd
Exercise Overview
In this exercise, you will be supplied the service request document and the Active Directory account list. Start the
exercise by creating a self-signed server certificate. You will then need to set the IP restrictions as outlined in the
service request.
Then set ISAPI and CGI restrictions. You must run the .NET Framework 1.1 Aspnet_isapi.dll on your Web server. You
can follow these steps to set the ASP.NET ISAPI to Allowed in the ISAPI and CGI Restrictions list. Finally, you have to
create an application pool that uses .NET Framework 1.1 and that is configured to use ISAPI mode to process
requests made to applications in the application pool.
Finally, set the Active Directory permissions, as specified in the service request document.
This exercises main tasks are:
1.
2.
3.
4.
5.
6.
7.
8.
9.
Note: If you have already logged on to a virtual machine, skip the logon task for that particular virtual machine.
Lab Answer Key: Securing the IIS 7.0 Web Server and Web Sites
2.
On NYC-WEB-B, click Start | Administrative Tools | Internet Information Services (IIS) Manager.
2.
3.
4.
5.
6.
The Create Self-Signed Certificate dialog box appears. In the Specify a friendly name for the
certificate field, type woodgrovebank.
7.
Click OK.
Notice that the new self-signed certificate has been added to the certificate list.
Question: What are the advantages and disadvantages of using self-signed certificates?
Answer: The primary advantages of using a self-signed certificate are that it provides a secure
method of transferring data. Unlike certificates offered by 3rd parties, self-signed certificates have no
financial cost associated with them. They provide a good solution for securing Web data transfer or
personal information, i.e. if used for personal use.
The primary disadvantage of using self-signed certificates is that when used for public access, the user
has no way to validate the authenticity of the certificate owner. This implies that there is no reputable
3rd party verifying the certificate owner. So, although the data is secure, you may not be able to trust
the source.
2.
In the details pane, in the Security section, double-click IPv4 Address and Domain Restrictions.
3.
4.
The Add Deny Restrictions Rule dialog box appears. In the Specific IPv4 address field, type
10.10.20.1.
5.
Click OK.
6.
7.
The Add Deny Restrictions Rule dialog box appears. Click IPv4 address range.
8.
9.
Lab Answer Key: Securing the IIS 7.0 Web Server and Web Sites
2.
In the details pane, in the Security section, double-click ISAPI and CGI Restrictions.
Notice that Active Server Pages and ASP.NET v2.0.50727 are the only applications currently listed.
3.
4.
5.
The Edit ISAPI or CGI Restriction dialog box appears. Notice that you can easily edit the ISAPI or
CGI path, description, and execution allow.
6.
Click Cancel.
7.
8.
The Edit ISAPI or CGI Restrictions Settings dialog box appears. While its not a recommended
practice, you can easily allow unspecified CGI and ISAPI modules.
9.
Click Cancel.
2.
Double-click dotnetfix.exe.
3.
The Microsoft .NET Framework 1.1 Setup dialog box appears, confirming if you want to install the
.NET Framework package. Click Yes.
4.
The Microsoft .NET Framework 1.1 Setup dialog box appears, asking you to agree to the license
agreement. Click I agree.
5.
Click Install.
6.
When the installation is complete, click OK. Note that it may take about four minutes to complete.
7.
8.
The Microsoft .NET Framework 1.1 Service Pack 1 (KB867460) dialog box appears, confirming if
you want to install the Service Pack. Click OK.
9.
The Microsoft .NET Framework 1.1 Service Pack 1 (KB867460) License Agreement dialog box
appears, asking you to agree to the license agreement. Click I accept.
10. When the installation is complete, click OK. Note that it may take about two minutes to complete.
f Task 7: Set ISAPI and CGI restrictions to use ASP.NET version 1.1
1.
In Internet Information Services (IIS) Manager, in the Connections pane, click NYC-WEB-B.
2.
In the details pane, in the Security section, double-click ISAPI and CGI Restrictions.
Notice that the ASP.NET v1.1.4322 has been added.
3.
4.
5.
The Edit ISAPI or CGI Restriction dialog box appears. Select Allow extension path to execute, and
then click OK.
6.
In the Connections pane, ensure that NYC-WEB-B is already expanded, and then click Application
Pools.
Lab Answer Key: Securing the IIS 7.0 Web Server and Web Sites
Notice that the ASP.NET v1.1 application pool has been added and started.
f Task 8: Set the rights and permissions for Active Directory users
1.
2.
3.
The wwwroot Properties dialog box appears. Click the Security tab.
4.
Click Edit.
5.
6.
The Select Users, Computers, or Groups dialog box appears. Click Locations.
7.
The Locations dialog box appears. If WoodgroveBank.com is not already highlighted, then in the
Location tree, click WoodgroveBank.com.
8.
Click OK.
9.
In the Enter the object names to select field, type ITAdmins_WoodgroveGG and then click Check
Names.
2.
3.
Click OK.
Results: After this exercise, you should have successfully set IP restrictions, ISAPI and CGI restrictions,
and Active Directory permissions, as specified in a service request document
Lab Answer Key: Securing the IIS 7.0 Web Server and Web Sites
Exercise Overview
In this exercise, you must reconfigure authentication and authorization so that shared documents folder on the
Web server is fully protected by forms authentication.
This exercises main tasks are:
1.
Turn off the Web site cache for the shared documents folder.
2.
Sign into the Woodgrove Bank Web site and retrieve the confidential memo.
3.
4.
Modify the applicationHost.config to unlock the URL Authorization <configSections> section by changing the
override mode default to allow.
5.
Modify the applicationHost.config <applicationPools> section to change the Classic .NET application pool to
Integrated mode.
6.
Modify the applicationHost.config file to disable all other authentication types except for anonymous.
7.
Modify the applicationHost.config file to protect all content by removing the managedHandler precondition
from the <system.webServer> section.
8.
Reconfigure the authorization and authentication so that the protected content uses forms authentication.
9.
f Task 1: Turn off the Web site cache for the shared documents folder
1.
On NYC-WEB-B, in Internet Information Services (IIS) Manager, in the Connections pane, ensure
NYC-WEB-B | Sites | Default Web Site | docs is expanded, and then click shared.
2.
In the details pane, in the HTTP Features section, double-click HTTP Response Headers.
3.
4.
The Add Custom HTTP Response Header dialog box appears. In the Name field, type CacheControl.
5.
f Task 2: Sign into the Woodgrove Bank Web site and retrieve the confidential memo
1.
2.
3.
4.
5.
6.
7.
8.
In Internet Information Services (IIS) Manager, in the Connections pane, click Default Web Site.
In the Actions pane, click Browse *:80 (http).
The Windows Internet Explorer window opens. Click Shared Documents.
In the Email field, type [email protected].
In the Password field, type Pa$$w0rd.
Click Login.
If you get the AutoComplete Passwords dialog box, click No.
Click Woodgrove Confidential Memo.
Notice that the image representing the Woodgrove Confidential Memo appears.
Lab Answer Key: Securing the IIS 7.0 Web Server and Web Sites
2.
2.
3.
Change the Classic .NET application pool to Integrated mode by finding the <applicationPools>
section and replacing:
<add name="Classic .NET AppPool" managedPipelineMode="Classic" />
With:
<add name="Classic .NET AppPool" managedPipelineMode="Integrated" />
f Task 6: Modify the applicationHost.config file to disable all other authentication types
except for anonymous
1.
2.
Append:
enabled="false"
To:
clientCertificateMappingAuthentication, digestAuthentication,
iisClientCertificateMappingAuthentication, and windowsAuthentication.
Lab Answer Key: Securing the IIS 7.0 Web Server and Web Sites
f Task 7: Modify the applicationHost.config file to protect all content by removing the
managedHandler precondition from the <system.webServer> section
1.
Remove the preconditions for FormsAuthentication and DefaultAuthentication from the modules
section. Do this by finding the <system.webServer> section, and then modifying the lines indicated
on the next steps.
2.
Replace:
<add name="FormsAuthentication" type="System.Web.Security.FormsAuthenticationModule"
preCondition="managedHandler" />
With:
<add name="FormsAuthentication" type="System.Web.Security.FormsAuthenticationModule"
/>
3.
Replace
<add name="DefaultAuthentication"
type="System.Web.Security.DefaultAuthenticationModule" preCondition="managedHandler"
/>
With:
<add name="DefaultAuthentication"
type="System.Web.Security.DefaultAuthenticationModule" />
4.
5.
Close Notepad.
f Task 8: Reconfigure the authorization and authentication so that the protected content
uses forms authentication
1.
2.
3.
4.
Add the line <allow users="[email protected]" />, above the line <!--<deny
users="?" />-->.
5.
Remove the commenting brackets from the line <!--<deny users="?" />-->, changing it to <deny
users="?" />.
6.
7.
Close Notepad.
8.
In Internet Information Services (IIS) Manager, in the Connections pane, click shared.
9.
Lab Answer Key: Securing the IIS 7.0 Web Server and Web Sites
2.
3.
Click Login.
4.
5.
6.
Click Signout.
7.
Results: After reconfigure the Web sites authorization and authentication, so that all content uses
forms authentication and thereby protecting the confidential memo, the only way to obtain the memo
is by having the correct credentials.
10
Lab Answer Key: Securing the IIS 7.0 Web Server and Web Sites
Exercise Overview
In this exercise, you must configure and test Web site logging operations.
This exercises main tasks are:
1.
2.
On NYC-WEB-B, in Internet Information Services (IIS) Manager, in the Connections pane, click
NYC-WEB-B.
2.
In the details pane, in the Health and Diagnostics section, double-click Logging.
3.
Notice that the Log File Rollover Schedule is set for Daily.
4.
5.
2.
3.
4.
Close each of the running virtual machines. Do not save changes so they are reset to default for the
next lab.
Results: After examining the configuration of the Web servers logging settings, the current log file was
examined and proven to successfully track the Web servers activity.
Note: After you have completed the lab exercises closing the VMs and selecting undo disk is not required
for hosted labs. Click the Quit button to exit.
Module 6
Lab Answer Key: Configuring Delegation and Remote
Administration
Contents:
Exercise 1: Configuring Remote Administration
Password: Pa$$w0rd
Exercise Overview
In this exercise you will practice configuring a Web server for remote administration.
This exercises main tasks are:
1.
2.
3.
4.
On NYC-WEB-B, click Start | Administrative Tools | Internet Information Services (IIS) Manager.
In the Internet Information Services (IIS) Manager connections pane, click NYC-WEBB(WOODGROVEBANK\Administrator).
2.
3.
4.
5.
6.
Click Start.
On NYC-DC1, click Start and click Server Manager. In the Server Manager console pane, click
Roles.
2.
3.
4.
5.
The Add Roles Wizard dialog box appears. Click Add Required Features.
6.
7.
In the Role services box, clear all check boxes except for IIS Management Console.
8.
9.
10. Click Start | Administrative Tools | Internet Information Services (IIS) Manager.
11. In the details pane, click Connect to a server.
12. The Connect to Server wizard appears. In the Server name field, type NYC-WEB-B, and then click
Next.
13. On the Provide Credentials page, in the User name field, type
[email protected].
14. In the Password field, type Pa$$w0rd, and then click Next.
15. The Server Certificate Alert dialog box appears. Click Connect.
16. The Specify a Connection Name dialog box appears. Click Finish.
17. In the Connections pane, expand NYC-WEB-B | Sites and then click Default Web Site.
Question: Is the IIS Management Service available for configuration remotely?
Answer: No, this service can only be configured locally
18. In the details pane, in the IIS section, double-click Default Document.
19. Click index.htm.
20. In the Actions pane, click Move Up.
21. The Default Document dialog box appears. Click Yes.
22. In the Actions pane, click Move Up.
Results: After completing this exercise, you should have configured the IIS Management Service to
accept remote connections and you should have tested a remote connection from NYC-DC1.
Exercise Overview
In this exercise you will practice delegating administration of two web sites to the appropriate business owners.
This exercises main tasks are:
1.
2.
3.
4.
Test delegated administration for the Human Resources and Sales sites.
2.
3.
The File Sharing dialog box appears. Type Herbert and then click Add.
4.
5.
Click Share.
6.
7.
In the Internet Information Services (IIS) Manger Connections pane, expand Sites, and then click
HR.
8.
In the details pane, in the Management section, double-click IIS Manager Permissions.
9.
10. The Allow User dialog box appears. In the Windows field, type Herbert and then click OK.
f Task 2: Share the Woodgrove Sales Web Site for Betsy Stadick
1.
2.
3.
The File Sharing dialog box appears. Type Betsy and then click Add.
4.
5.
Click Share.
6.
Click Start, and click Run, then type Notepad, and then press ENTER.
2.
3.
The Open dialog box appears. In the Text Documents list, click All Files.
4.
Browse to C:\windows\system32\intesrv\config.
5.
6.
Scroll down to the <authentication> tag and delete the following text:
<anonymousAuthentication enabled="true" userName="IUSR" />
<basicAuthentication enabled="false" />
<clientCertificateMappingAuthentication />
<digestAuthentication />
<iisClientCertificateMappingAuthentication />
<windowsAuthentication />
7.
8.
9.
f Task 4: Test delegated administration for the Human Resources and Sales sites
1.
2.
3.
4.
The User Account Control dialog box appears. In the Password field, type Pa$$w0rd, and then click
OK.
5.
6.
The Connect to Site dialog box appears. In the Server name field, type NYC-WEB-B.
7.
In the Site name field, type HR, and then click Next.
8.
The Provide Credentials page appears. In the User name field, type
[email protected].
9.
10. The Server Certificate Alert dialog box appears. Click Connect.
11. The Specify a Connection Name dialog box appears. In the Connection Name field, type Human
Resources Site and then click Finish.
12. In the Connections pane, click Start Page.
13. In the details pane, click Connect to a site.
14. The Connect to Site dialog box appears. In the Server name field, type NYC-WEB-B.
15. In the Site name dialog box, type Sales, and then click Next.
16. The Provide Credentials page appears. In the User name field, type
[email protected].
17. In the Password field, type Pa$$w0rd, and then click Next.
18. The Connect to Site dialog box appears with an error stating that the user is not authorized to
connect to the specified computer.
Question: Why does this error occur?
Answer: This error occurs because Herbert was not granted IIS Manager permission on the Sales site.
19. Click OK.
20. Click Cancel.
21. Close Internet Information Service (IIS) Manager.
22. The Internet Information Service (IIS) Manager dialog box appears, asking if you want to save
changes. Click No.
23. Click Start | Switch User.
24. Log on as woodgrovebank\betsy with a password of Pa$$w0rd.
25. Click Start, and click Run, then type Notepad, and then press Enter.
26. The Notepad window opens. On the File menu, click Open.
27. The Open dialog box appears. Browse to E:\Mod06\Labfiles.
28. Click DisableAuthentications, and then click Open.
29. On the Edit menu, click Select All.
30. On the Edit menu, click Copy.
31. On the File menu, click Open.
32. The Open dialog box appears. In the File name field, type \\NYC-WEBB\WoodgroveSalesSite\Web.Config and then click Open.
33. Scroll to the end of the Web.Config file and put the cursor on the line before </configuration>.
34. On the Edit menu, click Paste.
35. On the File menu, click Save.
36. Close Notepad.
37. Click Start | Internet Explorer.
Exercise Overview
In this exercise you will practice configuring delegated administration so that all site owners can administer the
error messages for their site.
This exercises main tasks are:
1.
Configure feature delegation for the Human Resources and Sales sites.
2.
f Task 1: Configure feature delegation for the Human Resources and Sales sites
1.
On NYC-WEB-B, in the Internet Information Services (IIS) Manger Connections pane, click NYCWEB-B.
2.
3.
4.
2.
3.
4.
The User Account Control dialog box appears. In the Password field, type Pa$$w0rd, and then click
OK.
5.
6.
The Connect to Site dialog box appears. In the Server name field, type NYC-WEB-B.
7.
In the Site name dialog box, type HR, and then click Next.
8.
The Provide Credentials page appears. In the User name file, type [email protected].
9.
10. The Server Certificate Alert dialog box appears. Click Connect.
11. The Specify a Connection Name dialog box appears. In the Connection Name field, type Human
Resources Site and then click Finish.
12. In the Connections pane, click Human Resources Site.
13. In the details pane, in the IIS section, double-click Error Pages.
14. Right-click the line beginning with 404, and then click Edit.
15. The Edit Custom Error Page dialog box appears. Click Execute a URL on this site.
16. In the URL (relative to site root) field, type /ErrorPages/custom404.htm and then click OK.
17. Click Start | Internet Explorer.
18. The Internet Explorer window opens. Browse to
http://hr.woodgrovebank.com/missingpage.htm.
19. Note that the custom error page is displayed.
20. Close each of the running virtual machines. Do not save changes so they are reset to default for the
next lab.
Results: After completing this exercise, you should have successfully configured the Human Resources
and Sales sites so that the site owners can customize error pages for each site.
Note: After you have completed the lab exercises closing the VMs and selecting undo disk is not required
for hosted labs. Click the Quit button to exit.
Lab Answer Key: Using Command-line and Scripting for IIS 7.0 Administration
Module 7
Lab Answer Key: Using Command-line and Scripting for IIS
7.0 Administration
Contents:
Exercise 1: Manage IIS Web Sites with PowerShell
Lab Answer Key: Using Command-line and Scripting for IIS 7.0 Administration
Password: Pa$$w0rd
Exercise Overview
In this exercise, you will learn how to use PowerShell to manage IIS 7.0.
This exercises main tasks are:
1.
2.
3.
4.
5.
6.
Note: If you have already logged on to a virtual machine, skip the logon task for that particular virtual machine.
On NYC-WEB-B, if Server Manager opens, Close the Server Manager and click Start | All
Programs | Windows PowerShell 1.0 | Windows PowerShell.
2.
At the Windows PowerShell prompt, type get-service and then press Enter.
Type get-service -include w* | sort-object -property status and then press Enter.
2.
Notice the list of services that begin with a w with the stopped services listed first.
Lab Answer Key: Using Command-line and Scripting for IIS 7.0 Administration
2.
2.
2.
Results: After this exercise, you should have successfully identified, stopped and started services using
PowerShell.
Lab Answer Key: Using Command-line and Scripting for IIS 7.0 Administration
Exercise Overview
In this exercise, you will learn how to use MWA to execute a script.
This exercises main tasks are:
1.
Load Microsoft.Web.Administration.dll.
2.
3.
4.
Use the findsite function to list the default Website, the default Website ID, and then stop and start the default
Website.
2.
Notice the GAC, version and location for the Microsoft.Web.Administration.dll, which signifies the DLL
file was loaded.
2.
3.
4.
f Task 4: Use the findsite function to list the default Website, the default Website ID, and
then stop and start the default Website
1.
2.
3.
4.
5.
Lab Answer Key: Using Command-line and Scripting for IIS 7.0 Administration
6.
7.
8.
9.
10. Notice the status for the default Website is now started.
Results: After this exercise, you should have successfully used Microsoft.Web.Administration to gather
Website information and created a function to start and stop the default Website.
Lab Answer Key: Using Command-line and Scripting for IIS 7.0 Administration
Exercise Overview
In this exercise, you will learn how to use a PowerShell scripts.
This exercises main tasks are:
1.
2.
3.
4.
5.
6.
7.
On NYC-WEB-B, in PowerShell, type if (test-path $profile) {echo "Path exists."} else {new-item path $profile -itemtype file -force}; notepad $profile and then press Enter.
2.
3.
2.
3.
4.
In Notepad, at the end of the script, type, new-variable iismgr -value (New-Object
Microsoft.Web.Administration.ServerManager) -scope "global".
2.
3.
Lab Answer Key: Using Command-line and Scripting for IIS 7.0 Administration
2.
3.
4.
5.
6.
The Save As dialog box appears. In the Save as type list, click All Files.
7.
8.
Close Notepad.
9.
2.
Double-click CreateWebsite.cs.
3.
The Notepad window opens. Review the code, and then close Notepad.
4.
5.
6.
7.
Lab Answer Key: Using Command-line and Scripting for IIS 7.0 Administration
2.
Results: After this exercise, you should have successfully created a Microsoft.PowerShell profile script.
You should have also used a saved script to list Website. Finally, you should have successfully created a
site named NewSite.
Lab Answer Key: Using Command-line and Scripting for IIS 7.0 Administration
Exercise Overview
In this exercise, you will use WMI and AppCmd for IIS administration.
This exercises main tasks are:
1.
2.
3.
4.
5.
6.
2.
Type appcmd list apppool /xml | appcmd recycle apppool /in and then press Enter.
2.
Type appcmd list app /site.name:"NewSite" /xml | appcmd set app /in
/applicationPool:NewAppPool and then press Enter
2.
f Task 5: Store configuration information to file, and then restore the configuration
information
1.
Type appcmd list config "Default Web Site/" /section:caching /xml /config > config.xml and
then press Enter.
2.
Type appcmd set config "Default Web Site/" /in < config.xml and then press Enter.
3.
Notice the configuration changes were applied to the Default Web Site.
f Task 6: Use WMI to list the Default Web Site on the Web server
1.
10
Lab Answer Key: Using Command-line and Scripting for IIS 7.0 Administration
2.
3.
4.
The Save As dialog box appears. In the File name field, type C:\GetSite.vbs.
5.
In the Save as type list, click All Files, and then click Save.
6.
Close Notepad.
7.
8.
9.
Module 8
Lab Answer Key: Tuning IIS 7.0 for Improved Performance
Contents:
Exercise 1: Deploying Applications
Password: Pa$$w0rd
Exercise Overview
In this exercise, students will learn how to deploy an application, as well as application updates, with Xcopy.
This exercises main tasks are:
1.
2.
3.
Add ASP.NET and Dynamic Content Compression features to the IIS Role.
4.
Create the SalesSupport application and copy the ASP.NET application files.
5.
Deploy a second copy of the SalesSupport application named SalesSupport2 using Xcopy.
6.
7.
Create and assign an application pool for SalesSupport2 and test functionality.
Note: If you have already logged on to a virtual machine, skip the logon task for that particular virtual machine.
f Task 3: Add ASP.NET and Dynamic Content Compression features to the IIS Role
1.
On NYC-WEB-A, click Start and click Server Manager. In Server Manager console pane, expand
Roles and then click Web Server (IIS).
2.
3.
Right-click Web Server (IIS), and then click Add Role Services.
The Add Role Services dialog box appears. In the Role services box, select ASP.NET.
4.
The Add Role Services box appears. Click Add Required Role Services.
5.
6.
7.
8.
In the details pane, in the Role Services section, notice that ASP.NET and Dynamic Content
Compression are listed as Installed.
f Task 4: Create the SalesSupport application and copy the ASP.NET application files
1.
2.
In the Connections pane, expand NYC-WEB-A | Sites and then click Default Web Site.
3.
4.
5.
The Add Application dialog box appears. In the Alias field, type SalesSupport.
6.
Next to the Physical path field, click the Browse (...) button.
7.
The Browse For Folder dialog box appears. Browse to C:\inetpub\wwwroot, and then click Make
New Folder.
8.
9.
Click OK.
2.
3.
4.
5.
2.
3.
4.
5.
In Internet Information Services (IIS) Manager, in the Connections pane, click Default Web Site.
6.
7.
8.
The Add Application dialog box appears. In the Alias field, type SalesSupport2.
9.
Next to the Physical path field, click the Browse (...) button.
10. The Browse For Folder dialog box appears. Browse to C:\inetput\wwwroot\SalesSupport2, and
then click OK twice.
f Task 7: Create and assign an application pool for SalesSupport2 and test functionality
1.
2.
3.
The Add Application Pool dialog box appears. In the Name field, type SalesSupport2 and then
click OK.
4.
In the Connections pane, expand Default Web Site and then click SalesSupport2.
5.
6.
7.
The Select Application Pool dialog box appears. In the Application pool list, click SalesSupport2,
and then click OK twice.
8.
9.
10. Notice that the Woodgrove Bank Sales Support page loads successfully.
11. In Internet Explorer, browse to http://localhost/salessupport2.
12. Notice that the Woodgrove Bank Sales Support page version 2.0 loads successfully.
Results: After this exercise, you should have successfully verified that the ASP.NET role service is
installed, deployed that SalesSupport2 application, and verified functionality.
Exercise Overview
In this exercise, students will learn how to configure IIS Performance Options.
This exercises main tasks are:
1.
2.
3.
Configure Compression.
4.
2.
3.
In the details pane, right-click the graph, and then click Remove All Counters.
4.
5.
6.
The Add Counters dialog box appears. In the Available counters list, scroll down, and then expand
Web Service.
7.
8.
9.
10. With Reliability and Performance monitor running, in Internet Explorer, browse to
http://localhost/salessupport/test.aspx.
11. After the page loads, click Refresh several times rapidly. Notice that the dynamically generated time
updates each time you refresh.
12. Close Internet Explorer.
13. In Reliability and Performance Monitor, notice that the graph reflects the throughput. Note that
you can right-click the graph and then click Scale Selected Counters to get a better representation.
You may need to do this a couple of times to get a zoomed in view of the data.
In Internet Information Services (IIS) Manager, in the Connections pane, expand NYC-WEBA(WOODGROVEBANK)| Sites | Default Web Site and then click SalesSupport.
2.
3.
4.
The Add Cache Rule dialog box appears. In the File name extension field, type .aspx.
5.
6.
Click At time intervals, and then delete the existing text and type 00:00:10.
7.
Click OK.
8.
9.
10. Notice that the time updates only every 10 seconds after the first couple of loads and that the
subsequent loads are much faster.
11. In Internet Explorer, browse to http://localhost/salessupport2/test.aspx.
12. Click Refresh several times rapidly.
13. Notice that the time updates with each load.
14. In Reliability and Performance monitor, compare the two peaks for throughput on the graph.
Notice that the first peak has higher throughput than the second.
2.
3.
4.
In Internet Information Services (IIS) Manager, in the Connections pane, click Default Web Site.
5.
6.
7.
8.
9.
10. In Reliability and Performance Monitor, note the throughput on the graph. There should not be
much change for static compression.
Question: Why does the graph show little or no change?
Answer: Static compression is cached. Only the first page load requires processing the compression.
11. In Internet Explorer, browse to http://localhost/SalesSupport/test.aspx.
12. Click Refresh several times rapidly.
13. In Reliability and Performance Monitor, note the throughput on the graph.
14. In Internet Information Services (IIS) Manager, in the details pane, select Enable dynamic
content compression.
15. In the Actions pane, click Apply.
16. In Internet Explorer, browse to http://localhost/SalesSupport/test.aspx.
17. Click Refresh several times rapidly.
18. Close Internet Explorer.
19. In Reliability and Performance Monitor, note the throughput on the graph. The throughput has
decreased because dynamic compression negates dynamic output caching.
2.
Right click the IIS7 tab, and then click New Tab.
3.
4.
5.
You should have three tabs open. Right-click one of the tabs, and then click Refresh All.
6.
7.
Close Internet Explorer. In the Internet Explorer dialog box, click Close Tabs.
8.
In Internet Information Services (IIS) Manager, in the Connections pane, click Default Web Site.
9.
10. The Edit Web Site Limits dialog box appears. Select Limit number of connections.
11. In the Limit number of connections field, type 1.
12. Click OK.
13. Open Internet Explorer, and browse to http://localhost in three tabs.
14. In Internet Explorer, right-click one of the tabs, and then click Refresh All.
15. Notice that at least one of the tabs now reports Service Unavailable.
16. Close Internet Explorer. In the Internet Explorer dialog box, click Close Tabs.
Results: After this exercise, you should have configured performance options and verified functionality.
Exercise Overview
In this exercise, students will learn how to manage application pools to improve performance.
This exercises main tasks are:
1.
2.
3.
2.
3.
In Reliability and Performance Monitor, in the console pane, click Reliability and Performance.
4.
5.
Click the Image column heading to sort by image name, and then scroll down to w3wp.exe.
6.
Notice that there are two instances running. Note the amount of memory being used by each in the
Commit (KB) and Working Set (KB) columns.
In Internet Information Services (IIS) Manager, in the Connections pane, click Application Pools.
2.
3.
4.
In Reliability and Performance Monitor, notice that one of the w3wp.exe processes consumes less
memory.
5.
Close Internet Explorer. In the Internet Explorer dialog box, click Close Tabs.
In Internet Information Services (IIS) Manager, in the Connections pane, click SalesSupport2.
2.
3.
4.
The Select Application Pool dialog box appears. In the Application pool list, click DefaultAppPool.
5.
Click OK twice.
6.
7.
8.
9.
Lab Answer Key: Ensuring Web Site Availability with Web Farms
Module 9
Lab Answer Key: Ensuring Web Site Availability with Web
Farms
Contents:
Exercise 1: Backing Up an IIS Web Site
Lab Answer Key: Ensuring Web Site Availability with Web Farms
Password: Pa$$w0rd
Exercise Overview
In this exercise, students will learn how to back up a Web site. Use the virtual disk drive E: for the backup drive, as a
stand-in for a remote storage device.
This exercises main tasks are:
1.
2.
3.
4.
Backup the Web site, Web application, and config files to the E: drive.
Note: If you have already logged on to a virtual machine, skip the logon task for that
particular virtual machine.
2.
2.
f Task 4: Backup the Web site, Web application, and config files to the E: drive
1.
2.
Lab Answer Key: Ensuring Web Site Availability with Web Farms
3.
4.
5.
Browse to C:\inetpub\wwwroot.
6.
In the details pane, select all, right-click, and then click Copy.
7.
8.
Notice that the Web site files are now backed up to this shared folder.
Results: After this exercise, you should have successfully backed up a web site.
Lab Answer Key: Ensuring Web Site Availability with Web Farms
Exercise Overview
In this exercise, students will learn how to restore a Web site.
This exercises main task is:
Restore the Web site, Web application, and config files from the shared drive.
f Task 1: Restore the Web site, Web application, and config files from the shared drive
1.
On NYC-WEB2, on the desktop, click Start | Administrative Tools | Internet Information Services
(IIS) Manager.
2.
In the Connections pane, expand NYC-WEB2 | Sites, and then click Default Web Site.
3.
4.
The Microsoft Internet Explorer window opens. Notice that the IIS 7.0 default page is displayed.
5.
6.
Notice that the folder contains the two IIS 7.0 default Web site files, iisstart.htm and welcome.png,
and the aspnet_client folder.
7.
8.
If the NYC-WEB-D computer is not displayed in the details pane, network discovery may be turned
off. Click the notice bar, and then click Turn on network discovery and file sharing.
9.
10. In the details pane, select all, right-click and then click Copy.
11. Browse to C:\inetpub\wwwroot, right-click and then click Paste.
12. If a Copy File dialog box appears, indicating that you are about to overwrite any files or folders, click
Copy and Replace.
13. If a Confirm Folder Replace dialog box appears, indicating that you are about to overwrite a folder,
click Yes.
14. Notice that the new Web site files are now copied to this location.
15. In Internet Explorer, click the Refresh button.
16. Notice that the Woodgrove Bank Web site has been deployed on the second Web server.
Question: What process on the Web server led to the Woodgrove Bank Web site being displayed
instead of the IIS 7.0 default Web site?
Answer: After the Woodgrove Bank Web site files were copied to the second Web server, the default
file default.aspx superseded the file iisstart.htm.
Results: After this exercise, you should have successfully restored a web site to a second server.
Lab Answer Key: Ensuring Web Site Availability with Web Farms
Exercise Overview
In this exercise, students will learn how to enable shared configuration.
This exercises main tasks are:
1.
2.
3.
On NYC-WEB-D, click Start | Administrative Tools | Internet Information Services (IIS) Manager.
2.
3.
4.
5.
The Export Configuration dialog box appears, allowing you to export the local configuration files,
settings, and encryption keys. In the Physical path field, type \\NYC-WEB-D\E.
6.
In the Encryption keys password and Confirm password fields, type Pa$$w0rd.
7.
Click OK.
8.
The Export Configuration dialog box appears indicating that the files were exported successfully.
Click OK.
9.
Lab Answer Key: Ensuring Web Site Availability with Web Farms
f Task 2: Add the second Web server to use the Shared Configuration
1.
On NYC-WEB2, in Internet Information Services (IIS) Manager, in the Connections pane, click
NYC-WEB2.
2.
3.
4.
5.
6.
7.
8.
The Encryption Keys Password dialog box appears. In the Enter encryption key password field,
type Pa$$w0rd.
9.
Click OK.
10. The Shared Configuration dialog box appears, indicating that the current encryption keys were
backed up. Click OK.
11. The Shared Configuration dialog box appears, indicating that IIS Manager and Management service
must be restarted for these changes to be completed. Click OK.
12. Close Internet Information Services (IIS) Manager.
13. Click Start | Administrative Tools | Internet Information Services (IIS) Manager.
14. In the Connections pane, click NYC-WEB2.
15. In the details pane, in the Management section, double-click Management Service.
16. In the Actions pane, click Start.
On NYC-WEB-D, in Internet Information Services (IIS) Manager, in the Connections pane, click
NYC-WEB-D.
2.
3.
4.
The Add Default Document dialog box appears to allow us to add a default document to test the
shared configuration. In the Name field, type test.html and then click OK.
5.
On NYC-WEB2, in Internet Information Services (IIS) Manager, in the Connections pane, click
NYC-WEB2.
6.
7.
Notice that the default document test.html has been added to the top of the list for the second Web
server as well,
Question: Why has the default document test.html has been added to the top of the list for the
second Web server as well?
Answer: The default document test.html has been added to the top of the list for the second Web
because both servers are using shared configuration.
Lab Answer Key: Ensuring Web Site Availability with Web Farms
Results: After this exercise, you should have successfully configured a two-server network with an
underlying foundation of shared configurations.
Lab Answer Key: Ensuring Web Site Availability with Web Farms
Exercise Overview
In this exercise, students will ensure Web site availability by implementing Network Load Balancing.
This exercises main tasks are:
Create a new Network Load Balancing cluster.
Add the second host to the Network Load Balancing cluster.
Add the second server to the Network Load Balancing cluster.
Verify Network Load Balancing using NLB commands.
2.
In the console pane, right-click Network Load Balancing Clusters and then click New Cluster.
3.
The New Cluster: Connect dialog box appears. Start the process by connecting to the Network Load
Balance host computer. In the Host field, Type NYC-WEB-D, and then click Connect.
4.
Make sure the Local Area Connection interface with Interface IP address 10.10.0.21 is highlighted,
and then click Next.
5.
The New Clusters: Host Parameter page shows the dedicated IP addresses and the initial host state.
Click Next.
6.
The New Clusters: Cluster IP Addresses page allows you to add cluster IP addresses that are shared
by every member of the cluster. Click Add.
7.
The Add IP Address dialog box appears, allowing you to add IPv4 or IPv6 addresses to the cluster. In
the Add IPv4 address field, type 10.10.0.27.
8.
In the Subnet mask field, type 255.255.0.0, and then click OK.
9.
Make sure the newly added cluster IP address is highlighted. Click Next.
10. The New Clusters: Cluster Parameters page allows you to modify the operation mode of the cluster
IP addresses. In the Full Internet name field, type cluster.woodgrovebank.com.
11. Click Multicast.
12. Click Next.
13. The New Clusters: Port Rules page allows you to add, edit, and remove cluster IP address port rules.
Click Finish. Wait for the operation to complete before continuing.
f Task 2: Add the second host to the Network Load Balancing cluster
1.
In the console pane, right-click cluster.woodgrovebank.com and then click Add Host to Cluster.
2.
The Add Host to Cluster: Connect dialog box appears. Add the second host computer. In the Host
field, Type NYC-WEB2, and then click Connect. Wait for the operation to complete before
continuing.
Lab Answer Key: Ensuring Web Site Availability with Web Farms
3.
Make sure the Local Area Connection interface with Interface IP address 10.10.0.26 is highlighted,
and then click Next.
4.
The New Clusters: Host Parameter page shows the dedicated IP addresses and the initial host state.
Make sure that the Priority (unique host identifier) is 2, and then click Next.
5.
The New Clusters: Port Rules page allows you to add, edit, and remove cluster IP address port rules.
Click Finish. Wait for the operation to complete before continuing.
f Task 3: Add the second server to the Network Load Balancing cluster
1.
On NYC-WEB2, Click Start, click Administrative Tools, and then click Network Load Balancing
Manager.
2.
The Network Load Balancing Manager window opens and loads the current cluster. The Warning
dialog box appears, presenting a warning about running NLB in Unicast mode. Click OK.
2.
3.
Notice that the NLB command indicates that host 2 has entered a converging state with the cluster.
4.
5.
6.
Notice that the NLB command indicates that host 1 has entered a converging state with the cluster.
7.
8.
The results show very detailed information about the cluster and its current state. Scroll to the top of
the displayed information to examine the Configuration section.
9.
Close each of the running virtual machines. Do not save changes so they are reset to default for the
next lab.
Results: After this exercise, you should have successfully configured network load balancing on a
two-server network, with an underlying foundation of shared configurations.
Note: After you have completed the lab exercises closing the VMs and selecting undo disk is not required
for hosted labs. Click the Quit button to exit.
Module 10
Lab Answer Key: Troubleshooting IIS 7.0 Web Servers
Contents:
Exercise 1: Troubleshooting Authentication
Password: Pa$$w0rd
Exercise Overview
In this exercise, you will troubleshoot an authentication issue using IIS logs and detailed error messages.
This exercises main tasks are:
1.
2.
3.
Browse to http://localhost/salessupport.
4.
5.
6.
7.
Note: If you have already logged on to a virtual machine, skip the logon task for that particular
virtual machine.
2.
2.
2.
3.
2.
3.
The Notepad window opens. Scroll to the far right and examine the last entries in the log file. Notice
that the status is 401 and substatus is 2.
4.
Close Notepad.
2.
In the Connections pane, expand NYC-WEB-E | Sites | Default Web Site and then click
SalesSupport.
3.
4.
5.
The Edit Error Pages Settings dialog box appears. Click Detailed errors for local requests and
custom error pages for remote requests, and then click OK.
2.
Notice the detailed error message reports HTTP Error 401.2 - Unauthorized.
3.
Scroll down to Most likely causes. Notice the first cause is No authentication protocol (including
anonymous) is selected in IIS.
2.
3.
4.
5.
6.
In the details pane, notice that Basic Authentication is Enabled, and all other authentication
methods are Disabled.
7.
8.
Notice that you are prompted for credentials. For User name, type Yvonne.
9.
10. Notice that the SalesSupport application now loads without error.
11. Close Internet Explorer.
Results: After this exercise, you should have successfully examined the IIS log files, enabled detailed
error messages, and resolved the authentication issue.
Exercise Overview
In this exercise, you will troubleshoot authorization using Failed Request Tracing.
This exercises main tasks are:
1.
Browse to http://localhost/salessupport2.
2.
Enable Failed Request Tracing and add a rule to trace successful requests.
3.
Reproduce the issue and examine the Failed Request Tracing log.
4.
2.
Notice that you are not prompted for credentials and the page loads without error.
3.
f Task 2: Enable Failed Request Tracing and add a rule to trace successful requests
1.
In Internet Information Services (IIS) Manager, in the Connections pane, click Default Web Site.
2.
3.
The Edit Web Site Failed Request Tracing Settings dialog box appears. Select Enable, and then
click OK.
4.
5.
In the details pane, in the IIS section, double-click Failed Request Tracing Rules.
6.
7.
The Add Failed Request Tracing Rule dialog box appears. Click Next.
8.
9.
Under Providers, clear ASP and ISAPI Extension. Leave ASPNET and WWW Server checked.
f Task 3: Reproduce the issue and examine the Failed Request Tracing log
1.
2.
3.
Double-click fr000001.xml.
4.
If prompted to add the site to the Trusted sites zone, click Add twice and then click Close.
5.
6.
7.
Scroll down and examine the lines that begin with AUTH_SUCCEEDED and USER_SET. Notice that
the authorized user is .
Question: What did we learn from the Failed Request Tracing log?
Answer: Anonymous users are being allowed to access the site. Since anonymous authentication
happens successfully, users are not being prompted to enter credentials.
8.
In Internet Information Services (IIS) Manager, in the Connections pane, click SalesSupport2.
2.
3.
4.
5.
6.
7.
8.
9.
Notice that both Anonymous Authentication and Basic Authentication are Enabled.
Exercise Overview
In this exercise, you will troubleshoot communication using tools.
This exercises main tasks are:
1.
2.
3.
4.
5.
6.
2.
3.
Notice that the ping succeeds indicating that NYC-DC1 and NYC-WEB-E are communicating.
On NYC-WEB-E, in Internet Information Services (IIS) Manager, in the Connections pane, click
NYC-WEB-E.
2.
3.
4.
The Edit Error Pages Settings dialog box appears. Click Detailed errors, and then click OK.
5.
6.
7.
Next to Config Error, notice the message Cannot read configuration file because the network
path is not found.
8.
Next to Config File, notice the path has nyc-weeb-e for the server name.
Internet Information Services (IIS) Manager, in the Connections pane, expand NetApp and then
click Content.
2.
3.
The Advanced Settings dialog box appears. In the Physical Path field, modify the path to read
\\nyc-web-e\content, and then click OK.
4.
5.
Notice that the IIS Welcome page appears and there is no error message.
Results: After this exercise, you should used ping to verify communication, enabled detailed error
messages, and resolved the error.
Exercise Overview
In this exercise, you will troubleshoot configuration using detailed error messages.
This exercises main tasks are:
1.
2.
3.
Verify functionality.
f Task 1: Reproduce the issue and examine the detailed error message
1.
2.
3.
In the Most likely causes section, notice that the most likely cause is The file extension for the
requested URL does not have a handler configured to process the request on the Web server.
2.
Double-click web.config.
3.
On the Windows dialog, click Select a Program from a list of installed programs, and then click
OK. Click Notepad, and then click OK.
4.
The Notepad window opens. Notice that the <handlers> section contains a line for handling static
files.
5.
Notice that the path attribute is set to *.jgp. Modify the line so that the path attribute correctly
reads *.jpg.
6.
7.
Close Notepad.
2.
3.
Close each of the running virtual machines. Do not save changes so they are reset to default for the
next lab.
Results: After this exercise, you should have reproduced the problem, examined the detailed error
message, and resolved the error.
Note: After you have completed the lab exercises closing the VMs and selecting undo disk is not required
for hosted labs. Click the Quit button to exit.