You are previewing Internet Information Services (IIS) 7.0 Administrator’s Pocket Consultant.
O'Reilly logo
Internet Information Services (IIS) 7.0 Administrator’s Pocket Consultant

Book Description

Portable and precise, this pocket-sized guide delivers immediate answers for the day-to-day administration of Web servers running Microsoft Internet Information Services (IIS) 6.0. Zero in on core IIS support procedures and everyday tasks using quick-reference tables, step-by-step instructions, and lists. You get the focused, streamlined information you need to solve problems and get the job done—whether you’re at your desk or in the field!

Get fast facts to:

  • Install Web and application server components

  • Learn core techniques for managing IIS

  • Configure Web sites, servers, and virtual directories

  • Customize Web content, including error messages and redirection

  • Manage Web applications, application pools, and Microsoft ASP.NET

  • Configure SMTP, POP3, and advanced messaging options

  • Implement security features—permissions, certificates, SSL

  • Monitor and optimize IIS performance

  • Manage IIS backups and metabase configurations

  • Table of Contents

    1. Internet Information Services (IIS) 7.0 Administrator’s Pocket Consultant
    2. Dedication
    3. Acknowledgments
    4. Introduction
      1. Who Is This Book For?
      2. How This Book Is Organized
      3. Conventions Used in This Book
      4. Other Resources
      5. Support
    5. 1. IIS 7.0 Administration Overview
      1. Working with IIS 7.0: What You Need to Know Right Now
      2. Introducing IIS 7.0 Configuration Architecture
        1. IIS 7.0 Configuration Schema
        2. IIS 7.0 Global Configuration System
      3. IIS 7.0 and Your Hardware
      4. IIS 7.0 Editions and Windows
      5. Web Administration Tools and Techniques
        1. Managing Resources by Using Key Administration Tools
        2. Web Administration Techniques
    6. 2. Deploying IIS 7.0 in the Enterprise
      1. IIS 7.0 Protocols
        1. HTTP and SSL
        2. FTP
        3. SMTP
      2. IIS 7.0 Roles
      3. Navigating the IIS 7.0 Role Services and Features
        1. Role Services for Application Servers
        2. Role Services for Windows Desktops and Web Servers
        3. Role Services for Servers Running SharePoint Services
      4. Setting Up IIS 7.0
        1. Installing Application Servers
        2. Installing Web Servers
        3. Installing Windows SharePoint Services
        4. Adding or Removing Web Server Features on Windows Vista
      5. Managing Installed Roles and Role Services
        1. Viewing Configured Roles and Role Services
        2. Adding or Removing Roles on Servers
        3. Viewing and Modifying Role Services on Servers
    7. 3. Core IIS 7.0 Administration
      1. Working with IIS and URLs
      2. Understanding the Core IIS Architecture
        1. Working with Web Sites
        2. Working with Web Applications and Virtual Directories
        3. Controlling Access to Servers, Sites, and Applications
      3. Understanding the Services and Processing Architecture
        1. Essential IIS Services and Processes
        2. IIS Worker Process Isolation Mode
        3. Understanding and Using IIS Applications
        4. Understanding and Using ASP.NET Applications
      4. Managing IIS Servers: The Essentials
        1. Using Internet Information Services (IIS) Manager
        2. Enabling and Configuring Remote Administration
        3. Starting, Stopping, and Restarting All Internet Services
        4. Managing Individual Resources in IIS Manager
        5. Rebooting IIS Servers
      5. Managing IIS Services
        1. Starting, Stopping, and Pausing IIS Services
        2. Configuring Service Startup
        3. Configuring Service Recovery
    8. 4. Managing IIS 7.0 from the Command Line
      1. Using the Windows PowerShell
        1. Introducing the Windows PowerShell
        2. Running and Using Windows PowerShell
        3. Running and Using Cmdlets
        4. Running and Using Other Commands and Utilities
      2. Working with Cmdlets
        1. Using Windows PowerShell Cmdlets
        2. Using Cmdlet Parameters
        3. Understanding Cmdlet Errors
        4. Using Cmdlet Aliases
        5. Using Cmdlets with IIS
      3. Using the IIS Command-Line Administration Tool
        1. Running and Using the IIS Command Line Administration Tool
        2. Working with the IIS Command Line Administration Tool
      4. Working with IIS Commands
        1. Using Configuration Management Commands
        2. Using Module Management Commands
        3. Using Site Management Commands
        4. Using Application Pool Management Commands
        5. Using Application Management Commands
        6. Using Virtual Directory Management Commands
        7. Using Utility Commands
    9. 5. Managing Global IIS Configuration
      1. Understanding Configuration Levels and Global Configuration
      2. Managing Configuration Sections
        1. Working with Configuration Sections
        2. Determining Settings for a Configuration Section
        3. Modifying Settings for a Configuration Section
        4. Locking and Unlocking Configuration Sections
        5. Clearing and Resetting Configuration Sections
      3. Extending IIS with Modules
        1. Controlling Native Modules through the Configuration Files
        2. Controlling Managed Modules through the Configuration Files
        3. Controlling Managed Handlers through the Configuration Files
        4. Using the Configuration and Schema Files to Install Non-Standard Extension Modules
      4. Managing Modules
        1. Viewing Installed Native and Managed Modules
        2. Installing Native Modules
        3. Enabling Native Modules
        4. Enabling Managed Modules
        5. Editing Native and Managed Module Configurations
        6. Disabling Native and Managed Modules
        7. Uninstalling Native Modules
      5. Sharing Global Configuration
        1. Working with Shared Configurations
        2. Exporting and Sharing Global Configuration
    10. 6. Configuring Web Sites and Directories
      1. Web Site Naming and Identification
        1. Understanding IP Addresses and Name Resolution
        2. Understanding Web Site Identifiers
        3. Hosting Multiple Sites on a Single Server
        4. Checking the Computer Name and IP Address of Servers
        5. Examining Site Configuration
      2. Creating Web Sites
        1. Creating a Web Site: The Essentials
        2. Creating an Unsecured Web Site
        3. Creating a Secured Web Site
      3. Managing Web Sites and Their Properties
        1. Working with Sites in IIS Manager
        2. Configuring a Site’s Application Pool and Home Directory
        3. Configuring Ports, IP Addresses, and Host Names Used by Web Sites
        4. Restricting Incoming Connections and Setting Time-Out Values
        5. Configuring HTTP Keep-Alives
        6. Configuring Access Permissions in IIS Manager
        7. Managing a Site’s Numeric Identifier and AutoStart State
        8. Deleting Sites
      4. Creating Directories
        1. Understanding Physical and Virtual Directory Structures
        2. Examining Virtual Directory Configuration
        3. Creating Physical Directories
        4. Creating Virtual Directories
      5. Managing Directories and Their Properties
        1. Enabling or Disabling Directory Browsing
        2. Modifying Directory Properties
        3. Renaming Directories
        4. Changing Virtual Directory Paths, Logon Methods, and More
        5. Deleting Directories
    11. 7. Customizing Web Server Content
      1. Managing Web Content
        1. Opening and Browsing Files
        2. Modifying the IIS Properties of Files
        3. Renaming Files
        4. Deleting Files
      2. Redirecting Browser Requests
        1. Redirecting Requests to Other Directories or Web Sites
        2. Redirecting All Requests to Another Web Site
        3. Redirecting Requests to Applications
        4. Customizing Browser Redirection
      3. Customizing Web Site Content and HTTP Headers
        1. Configuring Default Documents
        2. Configuring Document Footers
        3. Configuring Included Files
        4. Using Content Expiration and Preventing Browser Caching
          1. Enabling Content Expiration
          2. Disabling Content Expiration
        5. Using Custom HTTP Headers
        6. Using Content Ratings and Privacy Policies
        7. Improving Performance with Compression
        8. Configuring Content Compression for an Entire Server
        9. Enabling or Disabling Content Compression for Sites and Directories
      4. Customizing Web Server Error Messages
        1. Understanding Status Codes and Error Messages
        2. Managing Custom Error Settings
          1. Viewing and Configuring Custom Error Settings
          2. Adding, Changing, and Removing Custom Error Responses
            1. Adding Localized Custom Error Responses
            2. Adding Non-localized Custom Error Responses
            3. Changing or Removing Custom Error Responses
      5. Using MIME and Configuring Custom File Types
        1. Understanding MIME
        2. Viewing and Configuring MIME Types
      6. Additional Customization Tips
        1. Using Update Sites to Manage Outages
        2. Using Jump Pages for Advertising
        3. Handling 404 Errors and Preventing Dead Ends
    12. 8. Running IIS Applications
      1. Managing ISAPI and CGI Application Settings
        1. Understanding ISAPI Applications
        2. Configuring ISAPI and CGI Restrictions
        3. Configuring ISAPI Filters
        4. Configuring CGI Settings
      2. Managing ASP Settings
        1. Controlling ASP Behavior
        2. Customizing Request Handling for ASP
        3. Optimizing Caching for ASP
        4. Customizing COM+ Execution for ASP
        5. Configuring Session State for ASP
        6. Configuring Debugging and Error Handling for ASP
      3. Managing ASP.NET Settings
        1. Configuring Session State Settings for ASP.NET
        2. Configuring SMTP E-Mail Settings
        3. Configuring Key/Value Pairs for ASP.NET Applications
        4. Configuring Settings for ASP.NET Pages and Controls
          1. Registering Custom Controls
          2. Configuring ASP.NET Settings for Pages and Controls
        5. Connecting to Data Sources
      4. Managing .NET Framework Settings
        1. Configuring .NET Providers
        2. Configuring .NET Trust Levels
        3. Configuring .NET Profiles
        4. Configuring .NET Roles
        5. Configuring .NET Users
        6. Configuring .NET Compilation
        7. Configuring .NET Globalization
    13. 9. Managing Applications, Application Pools, and Worker Processes
      1. Defining Custom Applications
      2. Managing Custom IIS Applications
        1. Viewing Applications
        2. Configuring Default Settings for New Applications
        3. Creating Applications
        4. Converting Existing Directories to Applications
        5. Changing Application Settings
        6. Configuring Output Caching for Applications
        7. Deleting IIS Applications
      3. Managing ASP.NET and the .NET Framework
        1. Installing ASP.NET and the .NET Framework
        2. Deploying ASP.NET Applications
        3. Uninstalling .NET Versions
      4. Working with Application Pools
        1. Viewing Application Pools
        2. Configuring Default Settings for New Application Pools
        3. Creating Application Pools
        4. Changing Application Pool Settings
        5. Assigning Applications to Application Pools
        6. Configuring Application Pool Identities
        7. Starting, Stopping, and Recycling Worker Processes Manually
          1. Starting and Stopping Worker Processes Manually
          2. Recycling Worker Processes Manually
          3. Configuring Worker Process Startup and Shutdown Time Limits
      5. Configuring Multiple Worker Processes for Application Pools
      6. Configuring Worker Process Recycling
        1. Recycling Automatically by Time and Number of Requests
        2. Recycling Automatically by Memory Usage
      7. Maintaining Application Health and Performance
        1. Configuring CPU Monitoring
        2. Configuring Failure Detection and Recovery
        3. Shutting Down Idle Worker Processes
        4. Limiting Request Queues
        5. Deleting IIS Application Pools
    14. 10. Managing Web Server Security
      1. Managing Windows Security
        1. Working with User and Group Accounts
        2. IIS User and Group Essentials
        3. Managing the IIS Service Logon Accounts
        4. Managing the Internet Guest Account
        5. Working with File and Folder Permissions
          1. File and Folder Permission Essentials
          2. Viewing File and Folder Permissions
          3. Setting File and Folder Permissions
        6. Working with Group Policies
          1. Group Policy Essentials
          2. Setting Account Policies for IIS Servers
          3. Setting Auditing Policies
      2. Managing IIS Security
        1. Configuring Handler Mappings for Applications
        2. Setting Authentication Modes
          1. Understanding Authentication
          2. Enabling and Disabling Authentication
        3. Setting Authorization Rules for Application Access
        4. Configuring IPv4 Address and Domain Name Restrictions
        5. Managing Feature Delegation and Remote Administration
          1. Creating and Configuring IIS Manager User Accounts
          2. Configuring IIS Manager Permissions
          3. Configuring Feature Delegation
    15. 11. Managing Active Directory Certificate Services and SSL
      1. Understanding SSL
        1. Using SSL Encryption
        2. Using SSL Certificates
        3. Understanding SSL Encryption Strength
      2. Working with Active Directory Certificate Services
        1. Understanding Active Directory Certificate Services
        2. Installing Active Directory Certificate Services
        3. Accessing Certificate Services in a Browser
        4. Starting and Stopping Certificate Services
        5. Backing Up and Restoring the CA
          1. Creating CA Backups
          2. Recovering CA Information
        6. Configuring Certificate Request Processing
        7. Approving and Declining Pending Certificate Requests
        8. Generating Certificates Manually in the Certification Authority Snap-In
        9. Revoking Certificates
        10. Reviewing and Renewing the Root CA Certificate
      3. Creating and Installing Certificates
        1. Creating Certificate Requests
        2. Submitting Certificate Requests to Third-Party Authorities
        3. Submitting Certificate Requests to Certificate Services
        4. Processing Pending Requests and Installing Site Certificates
      4. Working with SSL
        1. Configuring SSL Ports
        2. Adding the CA Certificate to the Client Browser’s Root Store
        3. Confirming that SSL Is Correctly Enabled
        4. Resolving SSL Problems
        5. Ignoring, Accepting, and Requiring Client Certificates
        6. Requiring SSL for All Communications
    16. 12. Performance Tuning, Monitoring, and Tracing
      1. Monitoring IIS Performance and Activity
        1. Why Monitor IIS?
        2. Getting Ready to Monitor
      2. Detecting and Resolving IIS Errors
        1. Examining the Access Logs
        2. Examining the Windows Event Logs
        3. Examining the Trace Logs
          1. Tracing Failed Requests
          2. Enabling and Configuring Failed Request Tracing
          3. Creating and Managing Trace Rules
      3. Monitoring IIS Performance and Reliability
        1. Using the Reliability And Performance Console
        2. Choosing Counters to Monitor
      4. Tuning Web Server Performance
        1. Monitoring and Tuning Memory Usage
        2. Monitoring and Tuning Processor Usage
        3. Monitoring and Tuning Disk I/O
        4. Monitoring and Tuning Network Bandwidth and Connectivity
      5. Strategies for Improving IIS Performance
        1. Removing Unnecessary Applications and Services
        2. Optimizing Content Usage
        3. Optimizing ISAPI, ASP, and ASP.NET Applications
        4. Optimizing IIS Caching, Queuing, and Pooling
    17. 13. Tracking User Access and Logging
      1. Tracking Statistics: The Big Picture
        1. Working with the NCSA Common Log File Format
          1. Host Field
          2. Identification Field
          3. User Authentication Field
          4. Time Stamp Field
          5. HTTP Request Field
          6. Status Code Field
          7. Transfer Volume Field
        2. Working with the Microsoft IIS Log File Format
        3. Working with the W3C Extended Log File Format
        4. Working with ODBC Logging
        5. Working with Centralized Binary Logging
      2. Understanding Logging
      3. Configuring Logging
        1. Configuring Per-Server or Per-Site Logging
        2. Configuring the NCSA Common Log File Format
        3. Configuring Microsoft IIS Log File Format
        4. Configuring W3C Extended Log File Format
        5. Configuring ODBC Logging
          1. Creating a Logging Database and Table in SQL Server 2005
          2. Creating a DSN for SQL Server 2005
          3. Enabling and Configuring ODBC Logging in IIS
        6. Configuring Centralized Binary Logging
        7. Disabling Logging
    18. 14. IIS Backup and Recovery
      1. Backing Up the IIS Configuration
        1. Understanding IIS Configuration Backups
        2. Managing the IIS Configuration History
        3. Viewing IIS Configuration Backups
        4. Creating IIS Configuration Backups
        5. Removing IIS Configuration Backups
        6. Restoring IIS Server Configurations
        7. Rebuilding Corrupted IIS Installations
      2. Backing Up and Recovering Server Files
        1. Turning on the Backup Feature
        2. Working with Windows Server Backup
        3. Setting Basic Performance Options
        4. Scheduling Server Backups
        5. Backing up a Server
        6. Protecting a Server Against Failure
          1. Configuring Recovery Options
        7. Recovering Files and Folders
    19. A. Comprehensive IIS 7.0 Module and Schema Reference
      1. Working with IIS 7.0 Modules
        1. Introducing the Native Modules
        2. Introducing the Managed Modules
      2. IIS 7.0 Native Module Reference
        1. AnonymousAuthenticationModule
          1. Description
          2. Executable
          3. Dependencies
          4. Configuration Element
          5. ApplicationHost.config Usage Examples
          6. Element Attributes
        2. BasicAuthenticationModule
          1. Description
          2. Executable
          3. Dependencies
          4. Configuration Element
          5. ApplicationHost.config Usage Example
          6. Element Attributes
        3. CertificateMappingAuthenticationModule
          1. Description
          2. Executable
          3. Dependencies
          4. Configuration Element
          5. ApplicationHost.config Usage Examples
          6. Element Attributes
        4. CgiModule
          1. Description
          2. Executable
          3. Dependencies
          4. Configuration Elements
          5. ApplicationHost.config Usage Examples
          6. Element Attributes
        5. ConfigurationValidationModule
          1. Description
          2. Executable
          3. Dependencies
          4. Configuration Element
          5. ApplicationHost.config Usage Examples
          6. Element Attributes
        6. CustomErrorModule
          1. Description
          2. Executable
          3. Dependencies
          4. Configuration Element
          5. ApplicationHost.config Usage Examples
          6. Element Attributes
        7. CustomLoggingModule
          1. Description
          2. Executable
          3. Dependencies
          4. Configuration Element
          5. ApplicationHost.config Usage Examples
          6. Element Attributes
        8. DefaultDocumentModule
          1. Description
          2. Executable
          3. Dependencies
          4. Configuration Element
          5. ApplicationHost.config Usage Examples
          6. Element Attributes
        9. DigestAuthenticationModule
          1. Description
          2. Executable
          3. Dependencies
          4. Configuration Element
          5. ApplicationHost.config Usage Examples
          6. Element Attributes
        10. DirectoryListingModule
          1. Description
          2. Executable
          3. Dependencies
          4. Configuration Element
          5. ApplicationHost.config Usage Examples
          6. Element Attributes
        11. DynamicCompressionModule
          1. Description
          2. Executable
          3. Dependencies
          4. Configuration Elements
          5. ApplicationHost.config Usage Examples
          6. Element Attributes
        12. FailedRequestsTracingModule
          1. Description
          2. Executable
          3. Dependencies
          4. Configuration Elements
          5. ApplicationHost.config Usage Examples
          6. Element Attributes
        13. FastCgiModule
          1. Description
          2. Executable
          3. Dependencies
          4. Configuration Elements
          5. ApplicationHost.config Usage Examples
          6. Element Attributes
        14. FileCacheModule
          1. Description
          2. Executable
          3. Dependencies
          4. Configuration Elements
        15. HttpCacheModule
          1. Description
          2. Executable
          3. Dependencies
          4. Configuration Elements
          5. ApplicationHost.config Usage Examples
          6. Element Attributes
        16. HttpLoggingModule
          1. Description
          2. Executable
          3. Dependencies
          4. Configuration Elements
          5. ApplicationHost.config Usage Examples
          6. Element Attributes
        17. HttpRedirectionModule
          1. Description
          2. Executable
          3. Dependencies
          4. Configuration Element
          5. ApplicationHost.config Usage Examples
          6. Element Attributes
        18. IISCertificateMappingAuthenticationModule
          1. Description
          2. Executable
          3. Dependencies
          4. Configuration Element
          5. ApplicationHost.config Usage Examples
          6. Element Attributes
        19. IpRestrictionModule
          1. Description
          2. Executable
          3. Dependencies
          4. Configuration Element
          5. ApplicationHost.config Usage Example
          6. Element Attributes
          7. Allow unrestricted access
          8. Restrict access to a specific grant list
          9. Allow open access except for specific computers
          10. Allow open access except for specific networks
          11. Allow open access except for specific domains
        20. IsapiFilterModule
          1. Description
          2. Executable
          3. Dependencies
          4. Configuration Element
          5. ApplicationHost.config Usage Examples
          6. Element Attributes
        21. IsapiModule
          1. Description
          2. Executable
          3. Dependencies
          4. Configuration Elements
          5. ApplicationHost.config Usage Examples
          6. Element Attributes
        22. ManagedEngine
          1. Description
          2. Executable
          3. Dependencies
          4. Configuration Elements
          5. ApplicationHost.config Usage Examples
        23. ProtocolSupportModule
          1. Description
          2. Executable
          3. Dependencies
          4. Configuration Element
          5. ApplicationHost.config Usage Examples
          6. Element Attributes
        24. RequestFilteringModule
          1. Description
          2. Executable
          3. Dependencies
          4. Configuration Element
          5. ApplicationHost.config Usage Examples
          6. Element Attributes
        25. RequestMonitorModule
          1. Description
          2. Executable
          3. Dependencies
          4. Configuration Elements
          5. ApplicationHost.config Usage Examples
        26. ServerSideIncludeModule
          1. Description
          2. Executable
          3. Dependencies
          4. Configuration Element
          5. ApplicationHost.config Usage Examples
          6. Element Attributes
        27. StaticCompressionModule
          1. Description
          2. Executable
          3. Dependencies
          4. Configuration Elements
          5. ApplicationHost.config Usage Examples
        28. StaticFileModule
          1. Description
          2. Executable
          3. Dependencies
          4. Configuration Element
          5. ApplicationHost.config Usage Examples
        29. TokenCacheModule
          1. Description
          2. Executable
          3. Dependencies
          4. Configuration Elements
          5. ApplicationHost.config Usage Examples
        30. TracingModule
          1. Description
          2. Executable
          3. Dependencies
          4. Configuration Element
          5. ApplicationHost.config Usage Examples
        31. UriCacheModule
          1. Description
          2. Executable
          3. Dependencies
          4. Configuration Elements
          5. ApplicationHost.config Usage Examples
        32. UrlAuthorizationModule
          1. Description
          2. Executable
          3. Dependencies
          4. Configuration Element
          5. ApplicationHost.config Usage Examples
          6. Element Attributes
        33. WindowsAuthenticationModule
          1. Description
          2. Executable
          3. Dependencies
          4. Configuration Element
          5. ApplicationHost.config Usage Examples
          6. Element Attributes
      3. IIS 7.0 Managed Module Reference
        1. AnonymousIdentificationModule
          1. .NET Framework Class Library
          2. ApplicationHost.config Usage Examples
          3. Microsoft Visual Basic Usage
          4. C# Usage
          5. Dependencies
          6. Configuration Elements
        2. DefaultAuthenticationModule
          1. .NET Framework Class Library
          2. ApplicationHost.config Usage Examples
          3. Visual Basic Usage
          4. C# Usage
          5. Dependencies
          6. Configuration Element
        3. FileAuthorizationModule
          1. .NET Framework Class Library
          2. ApplicationHost.config Usage Examples
          3. Visual Basic Usage
          4. C# Usage
          5. Dependencies
          6. Configuration Elements
        4. FormsAuthenticationModule
          1. .NET Framework Class Library
          2. ApplicationHost.config Usage Examples
          3. Visual Basic Usage
          4. C# Usage
          5. Dependencies
          6. Configuration Element
          7. Library Settings
        5. OutputCacheModule
          1. .NET Framework Class Library
          2. ApplicationHost.config Usage Examples
          3. Dependencies
          4. Configuration Element
        6. ProfileModule
          1. .NET Framework Class Library
          2. ApplicationHost.config Usage Examples
          3. Visual Basic Usage
          4. C# Usage
          5. Dependencies
          6. Configuration Elements
        7. RoleManagerModule
          1. .NET Framework Class Library
          2. ApplicationHost.config Usage Examples
          3. Visual Basic Usage
          4. C# Usage
          5. Dependencies
          6. Configuration Elements
        8. SessionStateModule
          1. .NET Framework Class Library
          2. ApplicationHost.config Usage Examples
          3. Visual Basic Usage
          4. C# Usage
          5. Dependencies
          6. Configuration Element
        9. UrlAuthorizationModule
          1. .NET Framework Class Library
          2. ApplicationHost.config Usage Examples
          3. Visual Basic Usage
          4. C# Usage
          5. Dependencies
          6. Configuration Elements
        10. UrlMappingsModule
          1. .NET Framework Class Library
          2. ApplicationHost.config Usage Examples
          3. Dependencies
          4. Configuration Elements
        11. WindowsAuthenticationModule
          1. .NET Framework Class Library
          2. ApplicationHost.config Usage Examples
          3. Visual Basic Usage
          4. C# Usage
          5. Dependencies
          6. Configuration Element
    20. B. About the Author
    21. Index
    22. About the Author
    23. Copyright