7471412
7471412
: Configuring
a Web Server
Contents
Overview 1
Overview of IIS 2
Preparing for an IIS Installation 3
Installing IIS 4
Configuring a Web Site 6
Administering IIS 19
Troubleshooting IIS 21
Lab A: Configuring a Web Server 23
Review 31
Information in this document, including URL and other Internet Web site referenc
es, is subject to change without notice. Unless otherwise noted, the example co
mpanies, 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,
places or events is intended or should be inferred. Complying with all applicab
le copyright laws is the responsibility of the user. Without limiting the right
s under copyright, no part of this document may be reproduced, stored in or intr
oduced into a retrieval system, or transmitted in any form or by any means (elec
tronic, 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 othe
r intellectual property rights covering subject matter in this document. Except
as expressly provided in any written license agreement from Microsoft, the furn
ishing of this document does not give you any license to these patents, trademar
ks, copyrights, or other intellectual property.
2000 Microsoft Corporation. All rights reserved.
Microsoft, MS-DOS, Windows, Windows NT, Active Directory, BackOffice, FrontPage,
IntelliMirror, NetShow, Outlook, PowerPoint, Visual Studio, and Windows Media a
re either registered trademarks or trademarks of Microsoft Corporation in the U.
S.A. and/or other countries.
The names of actual companies and products mentioned herein may be the trademark
s of their respective owners.
Simulations and interactive exercises were built with Macromedia Authorware
Overview
The Microsoft Windows 2000 based server products integrate Web publishing into the o
perating system with a built-in Web server, Microsoft Internet Information Servi
ces (IIS) 5.0. The integrated Web publishing environment that Windows 2000 provi
des makes it easy for an organization to publish and host Web content over a cor
Overview of IIS
By default, IIS is installed automatically when you install Windows 2000. IIS is
designed to support simple Web sites in addition to multiple Web sites on a sin
gle Web server. The Web publishing features of IIS integrate the latest Internet
standards to provide high levels of security, better performance, and standards
-based publishing protocols.
In addition to the World Wide Web (WWW) server, other Internet services that wor
k in conjunction with IIS include:
File Transfer Protocol (FTP) service. Enables you to set up FTP sites for upload
ing and downloading files.
Network News Transfer Protocol (NNTP) service. Enables you to host electronic di
scussion groups, or newsgroups. Newsgroups contain threaded discussions, which c
onsist of articles and follow-up messages that are related to a particular subje
ct.
Simple Mail Transfer Protocol (SMTP) service. Enables you to receive mail messag
es from a client application and send these mail messages to another server over
the Internet. You can also configure domain controllers to use the SMTP service
for replication over site links.
Important It is recommended that you remove IIS if you do not plan on using the
server as a Web server. To remove IIS from Windows 2000 Server, you can cancel t
he selection of IIS from the default installation.
Preparing for an IIS Installation
Before you install IIS, make sure you configure your server running Windows 2000
with the following network services and information:
Transmission Control Protocol/Internet Protocol (TCP/IP). IIS requires TCP/IP to
By default, IIS is installed automatically when you install Windows 2000, unless
you choose not to install it. When you configure IIS during the installation of
Windows 2000 Server, Setup adds Internet Services Manager to the Administrative
Tools menu and creates the Default Web Site and Default File Transfer Protocol
(FTP) Site. You can use Internet Services Manager to manage the Web server and t
o configure Web and FTP sites. After you install IIS, you can test the IIS insta
llation by using a browser to view files over your intranet or the Internet.
Note Setup will upgrade existing versions of IIS to IIS 5.0 when you install Win
dows 2000 Server.
Performing the Installation
If you choose not to install IIS during Windows 2000 Setup, you can install it l
ater.
To install IIS:
1.
In Control Panel, double-click Add/Remove Programs.
2.
Click Add/Remove Windows Components, select the Internet Information Services (I
IS) check box, and then follow the on-screen instructions in the Windows Compone
nts wizard to install IIS.
Note To open Internet Services Manager, click Start, point to Programs,
point to Administrative Tools, and then click Internet Services Manager.
Important IIS requires continual management. To be informed of the latest securi
ty updates for IIS and Windows 2000, ensure that you subscribe to the security b
ulletin service at http://www.microsoft.com/technet/security/ bulletin/notify.as
p.
Testing the Installation
After you install IIS, test your installation by using Microsoft Internet Explor
er to view the files in your home directory. The home directory is the central l
ocation for your published pages. The location of the default home directory tha
t IIS creates during Setup is C:\Inetpub\wwwroot.
To test your IIS installation:
1.
Start Internet Explorer on a computer that has an active connection to your intr
anet or the Internet. This computer can be the computer that you are testing, al
though it is recommended that you use a different computer on the network.
2.
In the Address box, type http://server (where server is the name of your compute
TCP Port. Determines the TCP port on which the Web service is running. The defau
lt is port 80. You can change the port to any unique TCP port number, but users
must specifically request that port number or their requests will fail to connec
t to your server.
SSL Port. Determines the port for connections that use Secure Sockets Layer (SSL
) encryption. An SSL port number is required only when SSL encryption is used. T
he default is port 443. You can change the port to any unique TCP port number, b
ut users must specifically request that port number or their requests will fail
to connect to your server. A Web server requires a computer certificate or Web s
erver certificate to enable SSL.
Note SSL security is an increasingly common requirement for Web sites that provi
de e-commerce and access to sensitive business information.
2.
Click OK to close the Default Web Site Properties dialog box.
Creating a New Web Site
To create a new Web site by using the Web Site Creation wizard, open Internet Se
rvices Manager, right-click the name of your computer point to New, and then cli
ck Web Site.
Follow the instructions in the Web Site Creation wizard to configure your new si
te. You must provide a description of the Web site, the IP address, port setting
s, and the path of the Web site home directory. You must also specify whether to
allow anonymous connections to the Web site, and set Web access permissions.
The home directory determines the location of the published content for a site.
When you assign a home directory, you can specify either a local directory or a
shared folder. A local directory stores published pages on the local computer. A
shared folder stores published pages on another computer on the network, and ap
pears to browsers as though it were located on the Web server.
You can assign the home directory for your site on the Home Directory tab in the
Properties dialog box for the Web site.
Specifying a Local Directory
To specify a home directory that resides on the same computer as IIS, click A di
rectory located on this computer. Specify the path to the home directory in the
Local Path text box, or click Browse to locate the home directory.
Specifying a Shared Folder
To specify a home directory that resides on a different computer from IIS, click
A share located on another computer.
Note When you specify a shared folder, most of the settings on the
Home Directory tab remain the same as when you specify a local directory.
However, the Network Directory text box replaces the Local Path text box,
and the Connect As button replaces the Browse button.
Type the universal naming convention (UNC) name in the Network Directory text bo
x, and click Connect As to specify the user name and password that IIS uses to c
onnect to the shared folder.
Identifying Methods of Authentication
To prevent unauthorized access to your Web site, you must verify the identity of
users. Configure your Web site so that no user can access the information on yo
ur Web site without providing a valid Windows user name and password. This ident
ification process is called authentication. The authentication process determine
s whether a user has a valid Windows user account with appropriate permissions f
or accessing a particular Web site, folder, or file. Authentication can be set a
t the Web site, directory, or file level. IIS supports four methods of authentic
ation for controlling access to content on your server.
Note IIS also includes a method of authentication by using certificates. For mor
e information about using certificates with IIS, see module 5, Implementing Secur
ity on a Web Server, in course 2295A, Implementing and Supporting Microsoft Inter
net Information Services 5.0.
Anonymous Access
Anonymous access provides users access to the public areas of your Web site with
out prompting them for a user name or password. This authentication method is co
nfigured by default during the IIS installation process. When a user attempts to
connect to your public Web site, your Web server assigns the user to the Windo
ws user account called IUSR_computername, where computername is the name of the
IIS server.
Note The IUSR_computername account is included in the built-in Guests group. Thi
s group has security restrictions that determine the level of access.
Basic Authentication
Basic authentication prompts users for a user name and password before allowing
access to a Web page. You can set Basic authentication at the Web site, folder,
or file level. When the Web server verifies that the user name and password corr
espond to a valid Windows 2000 user account, it establishes a connection. You ca
n configure IIS to use a specific domain when validating users credentials becaus
e Basic authentication does not allow a user to specify a domain. If the server
rejects the credentials, the Web browser repeatedly displays the Logon dialog bo
x until the user either enters a valid user name and password or closes the dial
og box.
Basic authentication is part of the Hypertext Transfer Protocol (HTTP) specifica
tion, and is supported by most browsers. However, Web browsers using Basic authe
ntication transmit passwords in an unencrypted form. As a result, any hacker can
intercept a user name and password. To secure user account information transmit
ted across the network, you must use Basic authentication with SSL security.
Digest Authentication
Digest authentication is a new feature of IIS 5.0. This method is similar to Bas
ic authentication, but it involves a different way of transmitting the authentic
ation credentials. The authentication credentials pass through a process called
hashing. Hashing converts the password to a unique value, from which the server
can verify the client s knowledge of the password without the client having to sen
d the password.
Digest authentication works across proxy servers and other firewalls, unlike int
egrated Windows authentication. Digest authentication is only available for serv
ers in a domain with Windows 2000 domain controllers. Also, Web browsers that su
pport HTTP 1.1 can support Digest authentication.
Important All user accounts that use Digest authentication must be configured wi
thin the Active Directory directory service with the Store password using reversi
ble encryption account option.
Internet Explorer 5.0 is the only browser that currently supports Digest authent
ication. The Digest authentication method proceeds as follows:
1.
The Web server sends the browser certain information that will be used in the au
thentication process.
2.
The browser encrypts the user name and password by adding the additional informa
tion sent by the server and then performing a hash on it.
3.
The resulting hash is sent over the network to the server, along with the additi
onal information in clear text.
4.
The server then adds the additional information to a plain text copy of the clie
nt's password and hashes all of the information.
5.
Finally, the server compares the hash value it received with the one it just mad
e. Access is granted only if the two numbers are absolutely identical.
Note A hash value consists of a small amount of binary data, no more than 160 bi
ts. This value is produced by using a hashing algorithm.
Integrated Windows Authentication
Integrated Windows authentication is a secure form of authentication because in
this method the user name and password are not sent across the network. The curr
ent Windows logon information on the client computer is used instead of the actu
al Windows user account and password information.
Note Only Internet Explorer, version 2.0 or later, supports this authentication
method. This method does not work over HTTP proxy connections.
Selecting a Method of Authentication
You can select a method of authentication for your Web site depending on the typ
e of information that you want to make available and the level of security that
you want to assign to your site.
The following table describes which type of authentication method to select for
different requirements.
Authentication Method Use When
Anonymous access
You want users to access public areas of your Web site.
This method does not offer any authentication at all.
Basic authentication
You want to authenticate users who access your Web site
through any browser or proxy server. Use this method when you are sure that conn
ections between the user and Web Server are secure, such as with a direct cable
line or a leased line. To secure authentication data that is sent across the Int
ernet, you must use Basic authentication with SSL.
Digest authentication You want secure authentication for your Web sites and yo
u must go through a proxy server. Also, Web browsers that support HTTP 1.1 can s
upport Digest authentication.
Integrated Windows
You are configuring an intranet site, where the users an
d
authentication the Web server are in the same domain or in domains with trust r
elationships between them. This method cannot authenticate users who access the
Web site through a proxy server. This method works only with Internet Explorer v
ersion 2.0 or later.
Selecting Multiple Methods of Authentication
Based on your requirements, you can select more than one method of authenticatio
n. However, when you select multiple methods, one method takes precedence over o
thers during authentication.
When you use a combination of Anonymous access and any authentication method, An
onymous access takes precedence. If the anonymous user account does not have per
mission to access a specific resource, IIS and the Web browser negotiate an auth
entication method.
When IIS and a Web browser negotiate an authentication method, The Web browser
uses the most secure method that both can use. The order of preference is Integr
ated Windows authentication, Digest authentication, and Basic authentication. Fo
r example, if a web page is configured to use to use all three authentication me
thods, and a Web browser can use only Digest authentication and Basic authentica
tion, the most secure authentication method that IIS and the Web browser can neg
otiate is Digest authentication.
You can assign a default document so that Web page content appears to the user e
ven when a browser request does not include a specific Hypertext Markup Language
(HTML) file name. You can use a default document as:
A home page that provides information for pages, Web sites, or section of a Web
site.
An index page that provides links to other content on the Web site.
3.
In the Address box, type the URL of the Web server s home directory, and then pres
s ENTER.
Note The URL begins with http:// followed by the Windows Networking name of your
server and the path of the file that you want to view. For example, if your sit
e is registered in WINS as Admin1 and you want to view the file called homepage.
htm that is located in the root of the home directory, type http://admin1/homepa
ge.htm
Resolving IIS Problems
When you are not able to display a Web page while testing a Web site, carefully
examine the error message. The error message contains information that can help
you to identify the cause of the problem. The following table lists common conne
ctivity problems and their solutions.
Problem Solution
The client cannot find Check name resolution and connectivity.
the Web server.
Access is forbidden. Check the authentication method and file permissions.
File not found. Check that the file exists and that its location is correct.
File does not display Check the page design to ensure that all elements exist, s
uch
correctly. as graphics. Verify that the permissions are set correctly.
Tip If your computer has IIS installed on it, you can use your Web browser to ac
cess the IIS online documentation, which contains many troubleshooting tips and
procedures. To access the IIS online documentation, in the Address box, type htt
p://localhost/iishelp and then press ENTER.
Objectives
After completing this lab, you will be able to:
Configure IIS.
Create a Web site.
Configure Web site security.
Configure a default document for a Web site.
Prerequisites
Before working on this lab, you must have:
Knowledge of the operations of IIS.
Knowledge of the options for Web site security.
Lab Setup
To complete this lab, you need the following:
A computer running Windows 2000 Advanced Server
es. g. Click Start, and then click Run. h. In the Open box, type http://localhos
t and then click OK. Internet Explorer displays the Northwind Traders Web page w
ithout prompting you for your credentials.
Why were you not prompted for your credentials when you accessed the Northwind T
raders Web site?
4. (continued) i. On the Northwind Traders Intranet Web Page, click Click here
for the Northwind Traders Management Web Page. Internet Explorer displays the se
cured Web page without prompting you for your credentials.
Why were you not prompted for your credentials when you accessed the secured Web
page?
4. (continued) j. Close Internet Explorer.
Exercise 3 Restoring Your Configuration
Scenario
After you have tested the Web site for Northwind Traders, you must restore IIS t
o its original configuration.
Goal
In this exercise, you will restore the original Web site settings for your compu
ter.
Review
1.
The computer running Windows 2000 Server in your department stores some product
information and white papers that you want to share with other employees of your
organization. Your organization has a network of computers running Windows 2000
, Windows 98, and the Macintosh operating system. How do you publish the require
d information so that it is accessible to all of the users in your network?
2.
You are about to host a new Web site for your company, and you want users to ref
er to the Web site by using a specific name. How do you enable users to connect
to the Web site by using this name?
3.
You are responsible for your company s intranet Web site that contains gen
eral information and white papers. Your network spans multiple domains, and you
do not have a corporate standard for Web browsers. You must configure IIS to ena
ble all employees of the company to have access to the information. Which access
or authentication method do you use to achieve this?
a.
Anonymous access.
b.
Basic authentication.
c.
Digest authentication.
d.
Integrated Windows authentication.
4.
Your Web page designer created Web pages for your company s Web site. The home pag
e for the Web site is called nwtradershome.htm. You have been assigned the task
of publishing the Web site. How do you ensure that users can access the home pag
e without explicitly specifying the file name nwtradershome.htm?
5.
You want to authenticate all of the users who access the official Web site of yo
ur organization through any Web browser. Which of the following methods of authe
ntication is best suited for your requirements?
a.
Anonymous access.
b.
Basic authentication.
c.
Digest authentication.
d.
Integrated Windows authentication.