Preparing for an IIS Installation Install TCP/IP Configure a Static IP Address 192.168.120.133 Establish a Domain Name nwtraders.msft nwtraders.msft Before you install IIS, make sure tha
Trang 1Review 20
Module 4: Configuring Web Services
Trang 2to represent any real individual, company, product, or event, unless otherwise noted Complying with all applicable copyright laws is the responsibility of the user No part of this document may
be reproduced or transmitted in any form or by any means, electronic or mechanical, for any purpose, without the express written permission of Microsoft Corporation If, however, your only means of access is electronic, permission to print one copy is hereby granted
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
2000 Microsoft Corporation All rights reserved
Microsoft, Active Directory, BackOffice, MS-DOS, PowerPoint, Visual Studio, Windows, Windows Media, and Windows NT are either registered trademarks or trademarks of Microsoft Corporation in the U.S.A and/or other countries
The names of companies, products, people, characters, and/or data mentioned herein are fictitious and are in no way intended to represent any real individual, company, product, or event, unless otherwise noted
Other product and company names mentioned herein may be the trademarks of their respective owners
Project Lead and Instructional Designer: Rick Selby
Project Revision Leads: Red Johnston; Jaswinder Singh Lamba (NIIT [USA] Inc.)
Revision Development: NIIT (USA) Inc
Instructional Designers: Victoria Fodale (ComputerPREP, Inc); Barbara Pelletier (S&T OnSite) Program Manager: Rodney Miller
Testing Leads: Sid Benavente, Keith Cotton
Testing Developer: Greg Stemp (S&T OnSite)
Courseware Test Engineers: Jeff Clark; Jim Toland (ComputerPREP, Inc)
Graphic Artist: Julie Stone (Independent Contractor)
Editing Manager: Lynette Skinner
Editor: Kelly Baker (Write Stuff)
Copy Editor: Kathy Toney (S&T Consulting)
Online Program Manager: Debbi Conger
Online Publications Manager: Arlo Emerson (Aquent Partners)
Online Support: Eric Brandt (S&T OnSite)
Multimedia Development: Kelly Renner (Entex)
Compact Disc and Lab Testing: Data Dimensions, Inc
Production Support: Irene Barnett (S&T Consulting)
Manufacturing Manager: Rick Terek (S&T OnSite)
Manufacturing Support: Laura King (S&T OnSite)
Lead Product Manager, Development Services: Bo Galford
Lead Product Manager: Gerry Lang
Group Product Manager: Robert Stewart
Simulations and interactive exercises were built by using Macromedia Authorware
Trang 3Instructor Notes
This module provides students with the knowledge and skill necessary to configure the built-in Web server for the Microsoft® Windows® 2000 server family The module first introduces Internet Information Services (IIS) 5.0, and
then explains how to establish and configure Web sites
At the end of this module, students will be able to:
Describe the use of IIS
Plan an IIS installation
Install IIS
Configure a Web site
Materials and Preparation
This section provides you with the materials and preparation needed to teach this module
Materials
To teach this module, you need the following materials:
• Microsoft PowerPoint® file 1594B_04.ppt
Preparation
To prepare for this module, you should:
Read all the materials for this module
Complete the lab
Presentation:
35 Minutes
Lab:
30 Minutes
Trang 4Preparing for an IIS installation This topic describes the requirements for a successful IIS installation Describe the network services and information that you must establish before installing IIS
Installing IIS This topic presents the procedure for installing IIS Briefly explain the two options for installing IIS, describe how to install IIS, and then explain how
to test the installation
Configuring a Web site This topic describes the tasks for configuring Web sites First, explain how
to configure Web site identification settings Explain the purpose of the home directory and the use of local and virtual directories Next, describe different authentication methods and how IIS authenticates users Finally, explain the use of default documents
Customization Information
This section identifies the lab setup requirements for a module and the configuration changes that occur on student computers during the labs This information is provided to assist you in replicating or customizing Microsoft Official Curriculum (MOC) courseware
The lab in this module is also dependent on the classroom configuration that is specified in the Customization Information section at the
end of the Classroom Setup Guide for course 1594B, Installing and
Configuring Microsoft Windows 2000 File, Print, and Web Servers
Default Web site is changed to Northwind Traders Web
Home directory for the Default Web site is changed to C:\nwindweb
Basic Authentication is enabled
Home.htm is made the first default document for the Default Web site
Important
Trang 5Overview
Microsoft® Windows® 2000 Server and Advanced Server integrate Web publishing into the operating system with a built-in Web server, Internet Information Services (IIS) 5.0 The integrated Web publishing environment provided by Windows 2000 makes it easier for an organization to publish and host Web content over a corporate intranet or the Internet
At the end of this module, you will be able to:
Describe the use of IIS
Prepare for an IIS installation
In this module, you will learn
about configuring IIS on a
server running
Windows® 2000 Server or
Advanced Server
Trang 6• World Wide Web (WWW) Server
• File Transfer Protocol (FTP) Service
• Network News Transfer Protocol (NNTP) Service
• Simple Mail Transfer Protocol (SMTP) Service
IIS installs automatically as a networking service when you install Windows 2000 IIS is designed to support simple in addition to multiple Web sites on a single Web server The Web publishing features of IIS integrate the latest Internet standards to provide higher levels of security, better performance, and standards-based publishing protocols
In addition to the World Wide Web (WWW) server, other Web services available with IIS include:
uploading and downloading of files
electronic discussion groups, or newsgroups Newsgroups contain threaded discussions, which consist of articles and follow-up posts that are related to
a particular subject
messages from one server to another over the Internet In addition, many mail clients require SMTP to send messages to a mail server
You can use IIS to support
Web sites on a corporate
intranet or the Internet
Trang 7Preparing for an IIS Installation
Install TCP/IP
Configure a Static IP Address 192.168.120.133
Establish a Domain Name nwtraders.msft nwtraders.msft
Before you install IIS, make sure that you configure your server running Windows 2000 with the following network services and information:
install TCP/IP before installing IIS to provide the connectivity necessary for transmitting data
server if you intend to use IIS to publish content to the Internet An IP address is a 32-bit number that uniquely identifies a computer connected to the Internet, to the other computers on the Internet
of an IP address, you need to have a Domain Name System (DNS) server available A DNS server is a distributed database that is used in IP networks
to resolve domain names to IP addresses Windows 2000 uses DNS as its primary method for name resolution
Computers running Windows 2000 are configured to receive TCP/IP configuration information from a Dynamic Host Configuration Protocol (DHCP) server by default You must configure TCP/IP with a static IP address before you install the Microsoft DNS Server service and perform any other DNS configurations
Slide Objective
To identify the network
services and information
required before you install
IIS
Lead-in
Proper preparation will help
ensure that your IIS
installation is successful
Note
Trang 8Installing IIS
To Install IIS
Perform the installation:
Adds Internet Services Manager to the Administration Tools Menu
Adds the Default Web Site and the Default FTP Site
Perform the installation:
Adds Internet Services Manager to the Administration Tools Menu
Adds the Default Web Site and the Default FTP Site
Test the installation:
Use Internet Explorer to view files in home directory, C:\\Inetpub\Wwwroot
Test the installation:
Use Internet Explorer to view files in home directory, C:\\Inetpub\Wwwroot
When you configure IIS during the installation of one of the operating systems
in the Windows 2000 server family, Setup adds the Internet Services Manager
to the Administrative Tools menu and creates the Default Web Site and
Default FTP Site After you install IIS, you can test the IIS installation by using
a browser to view files over your intranet or the Internet
Setup will upgrade existing versions of IIS and Microsoft Personal Web Server (PWS) to IIS 5.0 when you install one of the operating systems in the Windows 2000 server family
Performing the Installation
When you install IIS, Setup adds Internet Services Manager to the
Administrative Tools menu You use Internet Services Manager to manage the
Web server and configure Web and FTP sites Setup also adds a default Web site and FTP site during installation
To install IIS after Windows 2000 has been installed, perform the following steps:
1 In Control Panel, double-click Add/Remove Programs
2 Click Add/Remove Windows Components, click Internet Information
Services (IIS), and then follow the on-screen instructions in the Windows
Components wizard to install IIS
Slide Objective
To identify installation tasks
and results
Lead-in
When you install IIS, Setup
adds the Internet Services
Manager to the
Administrative Tools menu
and creates the Default Web
Sites and Default FTP Site
Note
Trang 9Testing the Installation
After installing IIS, you should test your installation by using Internet Explorer
to view the files in your home directory The home directory is the central
location for your published pages ISS creates the default home directory in C:\Inetpub\Wwwroot during Setup
To test your installation, perform the following steps:
1 Start Internet Explorer on a computer that has an active connection to your intranet or the Internet This computer can be the computer that you are testing, although it is recommended that you use a different computer on the network
2 In the Address box, type server_name (where server_name is the name of
your computer), and then press ENTER
The home page for the default Web site installed during Setup appears in the
browser A home page is the initial page of information for a Web site
Trang 10Configuring a Web Site
Before users can connect to your Web site, you must configure the IP address and domain name that users will use to connect to the Web site You can also specify the type of authentication used to validate a user’s logon information IIS 5.0 provides four methods of authentication: Anonymous, Basic, Digest, and Integrated Windows authentication To publish Web content, you need to configure home and virtual directories to store that content To help users
navigate your Web site, you can assign a default document A default document
appears if a user request to the Web server does not include a file name
For more information about IIS, see Internet Information Services 5.0
Technical Overview under Additional Reading on the Web page on the
Student Materials compact disc
Slide Objective
To identify the tasks that
you perform when
configuring a Web site
Lead-in
There are a number of tasks
that you need to perform
before users can connect to
your Web site
Note
Trang 11Identifying the Web Site
Default Web Site Properties
Directory Security HTTP Headers Custom Errors Web Site Operators Performance ISAPI Filters Home Directory Documents
Server Extensions Web Site Identification
Connections
Enable Logging Active log format:
W3C Extended Log File Format Properties
Unlimited Limited To: 1000 connections
900 seconds Connection Timeout::
To configure the default Web site, perform the following steps:
1 In Internet Services Manager, right-click the Web site, and then click
Properties
You can specify the following identification settings on the Web Site tab
Setting Description Description Determines the name of the Web site that appears in the
console tree in Internet Services Manager
IP Address Specifies the IP address defined in Networking Services
TCP Port Determines the port on which the Web service is
running The default is port 80 You can change the port
to any unique TCP port number However, users must know in advance to request that port number, or their requests will fail to connect to your server
SSL Port Determines the port that is used for Secure Sockets
Layer (SSL) encryption An SSL port number is required only if SSL encryption is used The default is port 443
SSL security is an increasingly common requirement for Web sites that provide e-commerce and access to sensitive business information
2 Click OK to close the Default Web Site Properties dialog box
Slide Objective
To describe the settings
used to identify a Web site
Lead-in
There are a number of
settings that you need to
configure to identify your
Web site
Emphasize to students that
the default port setting for
HTTP is well known to
computers running TCP/IP
and students should avoid
changing the TCP port
Note
Trang 12To create a new site by using the Web Site Creation wizard, perform the following steps:
1 In Internet Services Manager, select a computer or site
2 On the Action menu, point to New, and then click Web Site
Follow the instructions in the Web Site Creation wizard to configure your new site You must provide an IP address, port settings, and the path of the home or virtual directory You specify a virtual directory if your home directory is located on another hard disk on the local computer or on another computer on the network
Tell students that virtual
directories will be discussed
later in the module
Trang 13Configuring the Home Directory
Default Web Site Properties
Web Site Operators Performance ISAPI Filters Home Directory Documents Directory Security HTTP Headers Custom Errors When connecting to this resource, the content should come from:
A directory located on the computer
A share located on another computer
A redirection to a URL
Script source access Read
Write Directory browsing
Log visits Index this resource
Remove Configuration
Unload
Directory on local computer
Directory on local computer
Virtual directory
The home directory determines the location of the published content for a site
In the simplest cases, the home directory resides on the local computer To store published pages in a directory that is not located on the local computer, you can
create a virtual directory A virtual directory is located on another computer on
the network, but appears to browsers as though it was located on the Web server
Specifying a Local Directory
You can assign the home directory and virtual directories for your site on the
Home Directory tab in the Properties dialog box for the Web site
To specify a home directory that resides on the same computer as IIS, click A
directory located on the computer
Specifying a Virtual Directory
When configuring a virtual directory, you will need to assign an alias to that
folder An alias can be the folder name or any other name that identifies the site
to the user
To specify a home directory that resides on a different computer from IIS, click
A share located on another computer on the Home Directory tab in the Properties dialog box for the Web site
Slide Objective
To identify the assignment
of home directories and
virtual directories
Lead-in
There are two types of
directories that you can use
to publish documents
Explain that virtual
directories use UNC and
that client computers use
the following form to locate
the share:
\\server_name\share_name